This is a rust program that uses Yew (a component framework similar to React) to create a minesweeper game that compiles to web assembly and runs in the browser.
- Have Rust installed
- Add WebAssembly target
rustup target add wasm32-unknown-unknown
- Install Trunk and wasm-bindgen-cli
cargo install --locked trunk
cargo install wasm-bindgen-cli
- Run
trunk serve
from the project's root directory to spin up a server on port 8080 or add the--release
flag to compile with optimizations - That's it!