feat: update wasmtime version

This commit is contained in:
2023-01-18 23:31:15 +08:00
parent 3a98d7da3f
commit 14d22ef4ef
3 changed files with 289 additions and 165 deletions

View File

@@ -20,7 +20,7 @@ fn main() -> Result<()> {
let instance = linker.instantiate(&mut store, &module)?;
let hello = instance.get_typed_func::<(i32, i32), i32, _>(&mut store, "add")?;
let hello = instance.get_typed_func::<(i32, i32), i32>(&mut store, "add")?;
// let hello2 = instance.get_typed_func::<(&str, i32), i32, _>(&mut store, "add")?;
store.add_fuel(10_000_u64).ok();