improve feature selection

This commit is contained in:
vms 2020-07-14 19:01:17 +03:00
parent 124673a4df
commit be47b96ce8
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ mod result;
pub use export_allocator::allocate;
pub use export_allocator::deallocate;
#[cfg(any(feature = "debug", feature = "logger"))]
#[cfg(feature = "logger")]
pub use logger::WasmLogger;
pub use result::get_result_ptr;
pub use result::get_result_size;
@ -48,7 +48,7 @@ pub use result::set_result_size;
#[allow(unused_variables)]
pub(crate) fn log<S: AsRef<str>>(msg: S) {
// logs will be printed only if debug feature is enabled
#[cfg(all(feature = "debug", feature = "logger"))]
#[cfg(feature = "debug")]
unsafe {
let msg = msg.as_ref();
logger::log_utf8_string(msg.as_ptr() as _, msg.len() as _);

View File

@ -35,7 +35,7 @@ extern crate fluence_sdk_macro;
extern crate fluence_sdk_main;
pub use fluence_sdk_macro::fce;
#[cfg(any(feature = "debug", feature = "logger"))]
#[cfg(feature = "logger")]
pub use fluence_sdk_main::WasmLogger;
/// These API functions are intended for internal usage in generated code.