Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Component example

A WASM component that queries components_example_app::Health and calls methods on the typed Health resource generated by WIT bindgen.

Build:

cargo build --manifest-path examples/guest_wit_example/Cargo.toml --target wasm32-wasip2 --release

Copy the output to:

examples/host_wit_example/assets/mods/guest_wit_example.wasm

Then run the host example.

Note: the build script will try to copy target/wasvy/components.wit into wit/deps/game/components.wit if it exists. The checked-in copy is used as a fallback.