diff options
| author | Henry <mail@henrygressmann.de> | 2026-08-09 16:11:57 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-08-09 16:11:57 +0200 |
| commit | 9893a51d2712f82a2ee57316a66bc26500eb3fdd (patch) | |
| tree | 55578e887155323c57f05ac1905c552af82f5767 /examples/linking.rs | |
| parent | 8ca9c3580990bc973218d944f2262a7d98a8380e (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.rs | 2 |
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")?; |
