mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 12:41:32 +00:00
Improve imports ergonomics
This commit is contained in:
@ -12,8 +12,8 @@ fn main() -> Result<(), String> {
|
||||
|
||||
let mut imports = Imports::new();
|
||||
imports.add(
|
||||
"env".to_string(),
|
||||
"print_num".to_string(),
|
||||
"env",
|
||||
"print_num",
|
||||
Import::Func(
|
||||
unsafe { FuncRef::new(print_num as _) },
|
||||
FuncSig {
|
||||
|
Reference in New Issue
Block a user