Stream: wit-bindgen

Topic: Init Component Model bytes from wasm-bindgen?


view this post on Zulip DougAnderson444 | PeerPiper.io (Jun 19 2023 at 11:52):

(Forgive me if this has already been asked or if this is the wrong channel, I'm still new here)

Is there currently a way to instantiate a Wasm Component Model from wasm-bindgen like is done here for Modules?:

https://github.com/rustwasm/wasm-bindgen/blob/165ad00ccff4bc67705afdacecf894cb8250ee2e/examples/wasm-in-wasm/src/lib.rs#L21

Facilitating high-level interactions between Wasm modules and JavaScript - wasm-bindgen/examples/wasm-in-wasm/src/lib.rs at 165ad00ccff4bc67705afdacecf894cb8250ee2e · rustwasm/wasm-bindgen

view this post on Zulip Lann Martin (Jun 19 2023 at 14:06):

I think this probably covers your question: https://bytecodealliance.zulipchat.com/#narrow/stream/223391-wasm/topic/.E2.9C.94.20wasm-bindgen.2Fwit-bindgen.20commonality

view this post on Zulip Lann Martin (Jun 19 2023 at 14:06):

You may be interested in this as well: https://github.com/bytecodealliance/jco

JavaScript tooling for working with WebAssembly Components - GitHub - bytecodealliance/jco: JavaScript tooling for working with WebAssembly Components

view this post on Zulip DougAnderson444 | PeerPiper.io (Jun 19 2023 at 15:05):

Thanks for these, helps a lot. So it looks like we just call the Components from JavaScript in the Browser. Not all a bad thing, but good to know. And actually since we can call JS from wasm-bindgen, it suppose it could be done with a few extra steps..!


Last updated: Dec 23 2024 at 12:05 UTC