- Install Emscripten (normally done with emsdk)
- Source the emsdk_env.sh script to setup env variables
- Add the
wasm32-unknown-emscripten
target to Rust - Build with
cargo build --target=wasm32-unknown-emscripten
- Start the webserver and open
http://localhost:8000