A test zone for implementing WASM scripting into the Lyra engine
Go to file
SeanOMik 68cd259bf7
Expose asset manager, can load images now
2024-11-12 18:57:46 -05:00
.vscode update wasm related dependencies, make it easier to create components on the guest 2024-07-24 20:32:59 -04:00
guests Expose asset manager, can load images now 2024-11-12 18:57:46 -05:00
lyra-engine@62adcf2b50 Get the dotnet guest project working, test spawning entities in the C# project 2024-11-06 21:26:03 -05:00
src Expose asset manager, can load images now 2024-11-12 18:57:46 -05:00
test_assets Expose asset manager, can load images now 2024-11-12 18:57:46 -05:00
.envrc Simple PoC with Wit and WASMA 2024-04-14 17:02:52 -04:00
.gitignore change how bindings are generated, make it easier to call functions on the guest 2024-07-27 15:24:14 -04:00
.gitmodules Get the dotnet guest project working, test spawning entities in the C# project 2024-11-06 21:26:03 -05:00
Cargo.lock Implement ECS resources 2024-11-09 12:12:06 -05:00
Cargo.toml Implement ECS resources 2024-11-09 12:12:06 -05:00
LICENSE Initial commit 2024-04-14 16:58:12 -04:00
README.md change how bindings are generated, make it easier to call functions on the guest 2024-07-27 15:24:14 -04:00
csharp-guests.sln Expose asset manager, can load images now 2024-11-12 18:57:46 -05:00
mise.toml Expose asset manager, can load images now 2024-11-12 18:57:46 -05:00
rust-toolchain.toml Get the dotnet guest project working, test spawning entities in the C# project 2024-11-06 21:26:03 -05:00
shell.nix create a 'common-api' crate to make it easier to work with the ecs world 2024-04-14 19:34:07 -04:00

README.md

lyra-wasm-scripting-test

A test zone for implementing WASM scripting into the Lyra engine

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