yew/docs/getting-started/project-setup/using-cargo-web.md
Teymour Aldridge 2efa3d1cfa Shorten line lengths. (#106)
* Shortens line lengths (to ~100 characters max per line).
 * A few stylistic improvements
 * Corrects a couple of typos
 * Fixes a few grammar errors

Co-authored-by: Justin Starry <justin.starry@icloud.com>
2020-07-10 16:53:44 +08:00

615 B

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.

Install

cargo install cargo-web

Build

cargo web build

Run

cargo web start

Supported Targets

  • wasm32-unknown-unknown
  • wasm32-unknown-emscripten
  • asmjs-unknown-emscripten

{% hint style="info" %} For *-emscripten targets, you'll need to install the Emscripten SDK {% endhint %}