summaryrefslogtreecommitdiff
path: root/examples/linking.rs
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-08-09 16:11:57 +0200
committerHenry <mail@henrygressmann.de>2026-08-09 16:11:57 +0200
commit9893a51d2712f82a2ee57316a66bc26500eb3fdd (patch)
tree55578e887155323c57f05ac1905c552af82f5767 /examples/linking.rs
parent8ca9c3580990bc973218d944f2262a7d98a8380e (diff)
feat: add reusable host imports and simplify function calls
- make host definitions reusable across stores with gc-aware import linking - reorganize function calls, resumable execution, and typed value handling - expand typed tuples to arity 20 and update parser and store APIs Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples/linking.rs')
-rw-r--r--examples/linking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/linking.rs b/examples/linking.rs
index b3164ae..02cb88d 100644
--- a/examples/linking.rs
+++ b/examples/linking.rs
@@ -40,7 +40,7 @@ fn main() -> Result<()> {
imports.link_module("adder", add_instance)?;
// Instantiate the `import` module with the linked imports.
- let import_instance = ModuleInstance::instantiate(&mut store, &import_module, Some(imports))?;
+ let import_instance = ModuleInstance::instantiate(&mut store, &import_module, Some(&imports))?;
// Call the `main` function, which uses the imported `add` function.
let main = import_instance.func::<(), i32>(&store, "main")?;