Rust WebAssembly example
- Install
wasm-pack
, the high-level build tool for Rust WebAssembly projects
cargo install wasm-pack
- Build the project
wasm-pack build --target web
- Install a simple web server (Host These Things Please)
cargo install https
- Start the web server in the project root
http
- Open the application in your browser:
http://localhost:8000