Update cargo-run-wasm

This commit is contained in:
Daniel McNab 2023-04-05 14:40:51 +01:00 committed by Arman Uguray
parent 51f00fbd1f
commit 1529945a5a
3 changed files with 5 additions and 6 deletions

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` and binary name to be specified
```shell
cargo run_wasm --package with_winit --bin with_winit_bin
# Make sure the Rust toolchain supports the wasm32 target
rustup target add wasm32-unknown-unknown
cargo run_wasm -p with_winit
```
> **Warning**

View file

@ -10,5 +10,4 @@ repository.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# We use cargo-run-wasm main because of our workspace layout
cargo-run-wasm = { git = "https://github.com/rukai/cargo-run-wasm", rev = "d14f73de77eaae44714b4817d660026a31f5f5a9" }
cargo-run-wasm = "0.3.2"

View file

@ -6,7 +6,7 @@
/// ```
/// Generally:
/// ```
/// cargo run_wasm --package with_winit
/// cargo run_wasm -p with_winit
/// ```
fn main() {