Stream: wit-bindgen

Topic: where did crates/host-wasmtime-rust go?


view this post on Zulip Ramon Klass (Jan 19 2023 at 15:58):

the readme still mentions this crate, has this been moved somewhere? Is there some guide or example to follow how to currently build a host and guest function setup?

view this post on Zulip Lann Martin (Jan 19 2023 at 16:05):

It has moved into wasmtime: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wit-bindgen

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Ramon Klass (Jan 19 2023 at 16:05):

(deleted)

view this post on Zulip Ramon Klass (Jan 19 2023 at 17:39):

am I overlooking things or is the crate not in the workspace? How do I depend on it?

view this post on Zulip Alex Crichton (Jan 19 2023 at 17:40):

The prior runtime support from the wit-bindgen-host-wasmtime-rust crate is now located in wasmtime directly behind the component-model feature. The macro is now wasmtime::component::bindgen!. There's no second extra crate you need to depend on to use it

view this post on Zulip Ramon Klass (Jan 19 2023 at 17:42):

ah thanks, I hope I can get it to work :) (hopefully there will be a lot of documentation in the future)


Last updated: Nov 22 2024 at 16:03 UTC