mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-08 20:01:30 +11:00
Update cargo-run-wasm
This commit is contained in:
parent
51f00fbd1f
commit
1529945a5a
|
@ -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).
|
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
|
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
|
```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**
|
> **Warning**
|
||||||
|
|
|
@ -10,5 +10,4 @@ repository.workspace = true
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# We use cargo-run-wasm main because of our workspace layout
|
cargo-run-wasm = "0.3.2"
|
||||||
cargo-run-wasm = { git = "https://github.com/rukai/cargo-run-wasm", rev = "d14f73de77eaae44714b4817d660026a31f5f5a9" }
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/// ```
|
/// ```
|
||||||
/// Generally:
|
/// Generally:
|
||||||
/// ```
|
/// ```
|
||||||
/// cargo run_wasm --package with_winit
|
/// cargo run_wasm -p with_winit
|
||||||
/// ```
|
/// ```
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue