This tool assumes you already have rustup
installed.
You can check with:
rustup --version
If you don't have rustup
, install it before continuing any further.
git clone https://github.com/kylejlin/wasm-rust-quickstart.git
cd wasm-rust-quickstart
npm run setup
Open up localhost:8080 in your browser. You should see "Hello world! 42 + 1 = 43".
npm run serve # Starts Webpack Development Server (hot reloading JS)
npm run build-debug # Compiles Rust code for debug
npm run build-release # Compiles Rust code for release