Stream: wasmtime

Topic: ✔ Using a component from a C host with wasmtime


view this post on Zulip Scott Waye (Oct 07 2023 at 18:33):

Are ther any examples for this ? Is it just the same as rust , componet.from_file, add_to_linker WasiCtxBuilder build, link in a store, then instantiate ?

view this post on Zulip Alex Crichton (Oct 09 2023 at 03:05):

Currently the C API doesn't support the component model so the closest you could get is a jco-style solution where a component is "decompiled" into modules and a runtime via wasmtime's core embedding API. That doesn't currently exist afaik

Feature Add component model support to the c-api (particularly the ability run a component from a c-api host). Benefit Much of the WebAssembly world is currently (re)tooling around the component mo...

view this post on Zulip Scott Waye (Oct 09 2023 at 15:50):

Alex Crichton said:

Currently the C API doesn't support the component model so the closest you could get is a jco-style solution where a component is "decompiled" into modules and a runtime via wasmtime's core embedding API. That doesn't currently exist afaik

Thanks for the link. Ok, no problem I can do something else I think.

view this post on Zulip Notification Bot (Oct 09 2023 at 15:50):

Scott Waye has marked this topic as resolved.


Last updated: Dec 23 2024 at 14:03 UTC