This commit is contained in:
Justin Starry 2020-03-05 10:41:43 +08:00 committed by GitHub
parent a4670fa80d
commit 532d6639f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,9 +22,16 @@ cargo install cargo-web
#### Build
Either
```bash
cargo build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown --features web_sys
```
or
```bash
cargo build --target wasm32-unknown-unknown --features std_web
```
See more about features [here](https://docs.rs/yew/0.13.0/yew/#important-notes)
#### Test