- Install WASM support:
rustup target add wasm32-unknown-unknown
- Install wasm-bindgen:
cargo install wasm-bindgen-cli
- Build the project:
cargo build --target wasm32-unknown-unknown --release
- Link program to browser:
wasm-bindgen target/wasm32-unknown-unknown/release/flippity-flappity.wasm --out-dir wasm --no-modules --no-typescript
There are some issues with loading the files when running locally. I haven't (read: bothered to) found a way to solve this, so I just host the index file on a file server. I've found Surge to be the easiest.