Stream: wit-bindgen

Topic: ✔ Component Generation


view this post on Zulip r-muhairi (Jan 22 2023 at 05:41):

Hi, i was wondering if introducing wit-component is necessary to actually be able to import wasm binaries that were outputs of a rust library using wasm-bindgen-guest? In wasmtime of course, being host.

Perhaps there is a way to abstract this away?

the wit-component crate states in the README, and I quote:

Note that this crate is intended to be a low-level detail of tooling for components. Developers will not necessarily interact with this tooling day-to-day, instead using wrappers such as cargo-component which will automatically execute wit-component to produce component binaries.

view this post on Zulip Notification Bot (Jan 22 2023 at 05:54):

r-muhairi has marked this topic as resolved.

view this post on Zulip Notification Bot (Jan 22 2023 at 05:54):

r-muhairi has marked this topic as unresolved.

view this post on Zulip r-muhairi (Jan 22 2023 at 06:17):

I guess there is not, based on the workflow followed by the demo, that i overlooked,
https://github.com/bytecodealliance/wit-bindgen/blob/main/crates/wit-bindgen-demo/build.sh

It's a mere developer-experience type thing. However I guess since cargo doesn't support in itself post-build scripts and this being a library.

A language binding generator for WebAssembly interface types - wit-bindgen/build.sh at main · bytecodealliance/wit-bindgen

view this post on Zulip Notification Bot (Jan 22 2023 at 06:18):

r-muhairi has marked this topic as resolved.


Last updated: Oct 23 2024 at 20:03 UTC