mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* change suffixes from md to mdx fix broken links for English locale tree shake and update docusaurus add docusaurus ideal image plugin use svg and themed image delete unused static asset * move localized landing page * change GitLocalize project page * nit pick * remove ignore to have the block checked
37 lines
810 B
Plaintext
37 lines
810 B
Plaintext
---
|
|
title: Using cargo-web
|
|
---
|
|
|
|
Cargo webはクライアントWebアプリを作るためのCargoサブコマンドです。
|
|
これによりWebアプリのビルドとデプロイを驚くほど簡単にできます。
|
|
そして同時にEmscriptenがターゲットなのを唯一サポートしているツールチェーンです。
|
|
詳しくは[こちら](https://github.com/koute/cargo-web)。
|
|
|
|
**インストール**
|
|
|
|
```bash
|
|
cargo install cargo-web
|
|
```
|
|
|
|
## ビルド
|
|
|
|
```bash
|
|
cargo web build
|
|
```
|
|
|
|
## 動かす
|
|
|
|
```bash
|
|
cargo web start
|
|
```
|
|
|
|
## サポートされているターゲット
|
|
|
|
* `wasm32-unknown-unknown`
|
|
* `wasm32-unknown-emscripten`
|
|
* `asmjs-unknown-emscripten`
|
|
|
|
:::注意
|
|
`*-emscripten`をターゲットにする場合、Emscripten SDKをインストールする必要があります。
|
|
:::
|