Skip to content
This repository was archived by the owner on Jul 19, 2020. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 613 Bytes

using-cargo-web.md

File metadata and controls

32 lines (21 loc) · 613 Bytes

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 %}