Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 503 Bytes

File metadata and controls

13 lines (9 loc) · 503 Bytes

Component Example

This host registers a Health component and exposes methods to mods via a generated WIT interface. It uses wasvy::auto_host_components! so no manual resource implementations are required. The build script generates wit/components.wit and target/wasvy/components.wit for the guest example.

Run:

cargo run --manifest-path examples/host_wit_example/Cargo.toml

Build the guest, then copy the wasm to examples/host_wit_example/assets/mods/guest_wit_example.wasm.