Stream: git-wasmtime

Topic: wasmtime / issue #2001 wasmtime-wiggle: generate function...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 16:21):

pchickey commented on issue #2001:

This exists now

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 16:21):

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 function link_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