Using cargo-web

Cargo web is a cargo subcommand for building client web apps. It makes building and deploying web applications incredibly easy. It is also the only toolchain that supports Emscripten targets. Read more here.


cargo install cargo-web


cargo web build


cargo web start

Supported Targets

  • wasm32-unknown-unknown

  • wasm32-unknown-emscripten

  • asmjs-unknown-emscripten

For *-emscripten targets, you'll need to install the Emscripten SDK