Stream: wit-bindgen

Topic: ✔ place to get started


view this post on Zulip chaosprint (Oct 20 2023 at 08:38):

Hi I am trying to write some wit contracts. which crate is recommended for bindings? wit_bindgen? Can I only use wasmtime component model feature?

view this post on Zulip chaosprint (Oct 20 2023 at 08:52):

I also saw this one: "wit_bindgen_host_wasmtime_rust"

view this post on Zulip Alex Crichton (Oct 20 2023 at 14:43):

It depends on what your guest and host are. If your host is Wasmtime then you'll want to use wasmtime::component::bindgen!, and if your guest is Rust you'll want to use the wit-bingen crate. Other languages have other options, though

view this post on Zulip chaosprint (Oct 20 2023 at 16:37):

Alex Crichton said:

It depends on what your guest and host are. If your host is Wasmtime then you'll want to use wasmtime::component::bindgen!, and if your guest is Rust you'll want to use the wit-bingen crate. Other languages have other options, though

thank u! I have got the hello world working now :P

view this post on Zulip Notification Bot (Oct 20 2023 at 17:19):

chaosprint has marked this topic as resolved.


Last updated: Dec 23 2024 at 12:05 UTC