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/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple.rs') diff --git a/examples/simple.rs b/examples/simple.rs index e0842dd..8371992 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -15,7 +15,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, i32), i32>(&store, "add")?; + let add = instance.func_typed::<(i32, i32), i32>(&store, "add")?; assert_eq!(add.call(&mut store, (1, 2))?, 3); Ok(()) -- cgit v1.3.1