This commit is contained in:
vms 2020-08-24 15:26:21 +03:00
parent 300318cc72
commit a0e5438417
4 changed files with 5 additions and 2 deletions

View File

@ -32,3 +32,5 @@ debug = []
# Enable logger (this will cause log_utf8_string to appear in imports)
logger = []
fce = []

View File

@ -40,7 +40,7 @@ impl CallParameters {
}
}
#[cfg(not(feature = "used_in_sdk"))]
#[cfg(target_arch = "wasm")]
#[fce]
#[link(wasm_import_module = "host")]
#[allow(improper_ctypes)]

View File

@ -16,10 +16,10 @@
use crate::fce_ast_types;
use crate::new_ident;
use crate::parsed_type::*;
use proc_macro2::TokenStream;
use quote::quote;
use crate::parsed_type::*;
impl quote::ToTokens for fce_ast_types::AstExternModItem {
fn to_tokens(&self, tokens: &mut TokenStream) {

View File

@ -72,6 +72,7 @@ extern crate fluence_sdk_main;
pub use fluence_sdk_macro::fce;
pub use fluence_sdk_main::CallParameters;
#[fce(target_arch = "wasm")]
pub use fluence_sdk_main::get_call_parameters;
#[cfg(feature = "logger")]
pub use fluence_sdk_main::WasmLogger;