yew/docs/getting-started/project-setup/using-cargo-web.md
Teymour Aldridge b9863c1f5c
Finish setup of docusaurus (#1423)
* Add links to the sidebar.

* Remove unnecessary `page-ref`s (these links are now in the sidebar).

* Small grammar/style fix.

* Fix code tabs.

* Remove {% page-ref %} uses.

* Fix some line lengths.

* Split out `custom.css` into multiple files.

* Remove duplicate titles.
2020-07-24 16:17:47 +02:00

37 lines
612 B
Markdown

---
id: cargo-web
title: 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](https://github.com/koute/cargo-web).
**Install**
```bash
cargo install cargo-web
```
## Build
```bash
cargo web build
```
## Run
```bash
cargo web start
```
## Supported Targets
* `wasm32-unknown-unknown`
* `wasm32-unknown-emscripten`
* `asmjs-unknown-emscripten`
:::note
For `*-emscripten` targets, you'll need to install the Emscripten SDK
:::