build-example example:
cargo build --release --target wasm32-wasip2 -p {{example}}
mkdir -p ./examples/host_example/assets/mods
cp ./target/wasm32-wasip2/release/{{example}}.wasm ./examples/host_example/assets/mods
run-host-example:
cargo run -p host_example --features bevy/file_watcher
# Requires `poetry` to run
build-example-python:
cd examples/python_example/src/python_example && poetry run componentize-py --wit-path ../../wit/ --world example componentize app -o ../../../host_example/assets/mods/python.wasm
# Create the bindings for the python example
example-bindings-python:
cd examples/python_example && poetry run componentize-py --wit-path wit/ --world example bindings src/python_example
# For the fetching to take effect you must delete the deps folder manually
example-fetch-deps example:
cd examples/{{example}} && wkg wit fetch
build-host:
cargo build -p wasvy
build-wasvy-ecs:
wkg wit build --wit-dir ./wit/ecs/
publish-wasvy-ecs file_path version:
wkg publish --package wasvy:ecs@{{version}} {{file_path}} --registry wa.dev