diff options
| author | Henry <mail@henrygressmann.de> | 2026-04-12 13:34:31 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-04-12 13:34:31 +0200 |
| commit | dcd8b152466ab023762e4b9b6fc50c99da0cae50 (patch) | |
| tree | 391486a6a7edc56eb2a9135f295c270634ad3247 /examples/archive.rs | |
| parent | 87499c635504e808960e0c6ffffe2b43ca4d6206 (diff) | |
feat: rework public api, add missing export apis
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/archive.rs')
| -rw-r--r-- | examples/archive.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/archive.rs b/examples/archive.rs index 7a1021b..7025fba 100644 --- a/examples/archive.rs +++ b/examples/archive.rs @@ -21,7 +21,7 @@ fn main() -> Result<()> { let module: Module = TinyWasmModule::from_twasm(&twasm)?.into(); 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); |
