From dcd8b152466ab023762e4b9b6fc50c99da0cae50 Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 12 Apr 2026 13:34:31 +0200 Subject: feat: rework public api, add missing export apis Signed-off-by: Henry --- examples/simple2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple2.rs') diff --git a/examples/simple2.rs b/examples/simple2.rs index a3124f8..66e85b3 100644 --- a/examples/simple2.rs +++ b/examples/simple2.rs @@ -14,7 +14,7 @@ fn main() -> Result<()> { let module = Module::parse_bytes(&wasm)?; let mut store = Store::default(); let instance = module.instantiate(&mut store, None)?; - let add = instance.exported_func::<(i32, i64), (i32, i64)>(&store, "return")?; + let add = instance.func_typed::<(i32, i64), (i32, i64)>(&store, "return")?; assert_eq!(add.call(&mut store, (1, 2))?, (1, 2)); Ok(()) -- cgit v1.3.1