Update run_wasm instructions

This commit is contained in:
Arman Uguray 2023-04-23 16:02:15 -07:00
parent 84915dc289
commit 7526d1ca26

View file

@ -86,10 +86,10 @@ Until browser support becomes widespread, it will probably be necessary to use d
The following command builds and runs a web version of the [winit demo](#winit).
This uses [`cargo-run-wasm`](https://github.com/rukai/cargo-run-wasm) to build the example for web, and host a local server for it
Other examples use the `-p` shorthand, but `cargo-run-wasm` requires the full `--package` to be specified
Other examples use the `-p` shorthand, but `cargo-run-wasm` requires the full `--package` and binary name to be specified
```shell
cargo run_wasm --package with_winit
cargo run_wasm --package with_winit --bin with_winit_bin
```
> **Warning**