A test zone for implementing WASM scripting into the Lyra engine
- Rust 78.3%
- C# 20.6%
- Nix 1.1%
| .vscode | ||
| guests | ||
| lyra-engine@173d957f25 | ||
| src | ||
| test_assets | ||
| .envrc | ||
| .gitignore | ||
| .gitmodules | ||
| Cargo.lock | ||
| Cargo.toml | ||
| csharp-guests.sln | ||
| LICENSE | ||
| mise.toml | ||
| README.md | ||
| rust-toolchain.toml | ||
| shell.nix | ||
lyra-wasm-scripting-test
A test zone for implementing WASM scripting into the Lyra engine
Status
This has been superceeded by SeanOMik/lyra-scripting-wasmtime which implements WASM scripting to Lyra.
Building
Install the wasm32-wasip1 target:
rustup target add wasm32-wasip1
Install wasm-tools:
cargo install wasm-tools
Install cargo-component:
cargo install wasm-tools
Download wasi_snapshot_preview1.reactor.wasm in the witguest folder. Build the witguest project then use an adapter to convert the WASM module to a component:
cd witguest
cargo build --target wasm32-wasip1 && wasm-tools component new ../target/wasm32-wasip1/debug/witguest.wasm -o ../target/wasm32-wasip1/debug/witguest-component.wasm --adapt ../wasi_snapshot_preview1.reactor.wasm