Updates example readme and fix typo (#988)

This commit is contained in:
Matthias Lochbrunner 2020-03-01 17:10:35 +01:00 committed by GitHub
parent d36da62115
commit 8448e00fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,13 +5,13 @@
To start an example, enter its directory and start it with [cargo-web]: To start an example, enter its directory and start it with [cargo-web]:
```bash ```bash
cargo web start cargo web start --features std_web
``` ```
To run an optimised build instead of a debug build use: To run an optimized build instead of a debug build use:
```bash ```bash
cargo web start --release cargo web start --release --features std_web
``` ```
The `wasm32-unknown-unknown` target will be used by default, which is Rust's native WebAssembly target. The Emscripten-based `wasm32-unknown-emscripten` and `asmjs-unknown-emscripten` targets are also supported if you tell the `cargo-web` to build for them using the `--target` parameter. The `wasm32-unknown-unknown` target will be used by default, which is Rust's native WebAssembly target. The Emscripten-based `wasm32-unknown-emscripten` and `asmjs-unknown-emscripten` targets are also supported if you tell the `cargo-web` to build for them using the `--target` parameter.