Experimenting with making a game running under the wasm32-unknown-unknown target
Requires that you have the SDL2 development library installed on your computer.
cargo run
Uses wasm-bindgen for generating javascript bindings.
- Set your default toolchain to nightly
rustup default nightly
- Add the wasm32-unknown-unknown target
rustup target add wasm32-unknown-unknown
- Install wasm-bin
$ cargo install --git https://github.com/Healthire/wasm-bin
$ wasm-bin build
The packaged application will be output to ./target/wasm-bin/game
$ wasm-bin run