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?
I also saw this one: "wit_bindgen_host_wasmtime_rust"
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
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 thewit-bingen
crate. Other languages have other options, though
thank u! I have got the hello world working now :P
chaosprint has marked this topic as resolved.
Last updated: Dec 23 2024 at 12:05 UTC