From 9893a51d2712f82a2ee57316a66bc26500eb3fdd Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 9 Aug 2026 16:11:57 +0200 Subject: 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 --- examples/linking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/linking.rs') 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")?; -- cgit v1.3.1