pchickey commented on issue #2001:
This exists now
pchickey closed issue #2001:
This is a good beginner issue that is scoped to the wasmtime-wiggle crate, at crates/wiggle/wasmtime.
See also #2000, cc @jedisct1
I propose that
wasmtime_wiggle::wasmtime_integration!
generate an additional functionlink_all(ctx, &Store, &mut Linker) -> Result<(), _>
that constructs and links each module struct generated by the macro. This will make it hard to accidentally forget to instantiate and link in a module when maintaining an integration of several witx modules.Frank has pointed out that this is impossible since each module presently requires an owned
ctx
value, maybe using Rc<> in the ctx type will help here? This could have inadvertently revealed more problems that we hadn't thought of yet.
Last updated: Dec 23 2024 at 12:05 UTC