Hey, I've noticed that the new cli expects components for hosts. How are these created? At the moment I compile a guest module in rust with target wasm-unknown-unknown based on a wit file. But I can't figure out how to create the guest bindings
The wit-component
tool at crates/wit-component
is used to create the component right now
Ah right, thanks! That worked :grinning_face_with_smiling_eyes:
Jens Gåsemyr Magnus has marked this topic as resolved.
@Jens Gåsemyr Magnus also check out cargo-component which automates that for you
note it behaves a little differently as a wit-bindgen proc-macro isn't used to generate the bindings so the source looks a little different
Peter Huene said:
Jens Gåsemyr Magnus also check out cargo-component which automates that for you
Thanks! Will look into it :grinning_face_with_smiling_eyes:
Last updated: Dec 23 2024 at 12:05 UTC