linera_wasmerMacro imports
Source macro_rules! imports {
( $( $ns_name:expr => $ns:tt ),* $(,)? ) => { ... };
}
Expand description
Generate an Imports
easily with the imports!
macro.
ยงUsage
use wasmer::imports;
let import_object = imports! {
"env" => {
"foo" => Function::new_typed(&mut store, foo)
},
};
fn foo(n: i32) -> i32 {
n
}