Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.