Followed along with the wonderful Rust Bevy Full Tutorial
cargo run
To setup and run via WASM
Add WASM support to your Rust installation
rustup target install wasm32-unknown-unknown
Install
cargo install wasm-server-runner
Set up cargo to use it, in .cargo/config.toml
[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
cargo run --target wasm32-unknown-unknown
More details available in the Unofficial Bevy Cheat Book