File tree Expand file tree Collapse file tree 6 files changed +17
-16
lines changed
Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22Cargo.lock
33/.idea
44/.vscode
5+
6+ # Allow people to customize this for their own checkouts.
7+ .cargo
Original file line number Diff line number Diff line change 1- [workspace ]
2- members = [" run-wasm" ]
3-
41[package ]
52name = " softbuffer"
63version = " 0.4.8"
Original file line number Diff line number Diff line change @@ -66,7 +66,20 @@ Pull requests to add support for new platforms are welcome!
6666
6767## WebAssembly
6868
69- To run an example with the web backend: ` cargo run-wasm --example winit `
69+ To run an example with the web backend, add the following to ` .cargo/config.toml ` :
70+ ``` toml
71+ [target .'cfg(target_family = "wasm")' ]
72+ runner = " wasm-server-runner"
73+ ```
74+
75+ And then run:
76+
77+ ``` sh
78+ cargo install wasm-server-runner
79+ cargo run --target wasm32-unknown-unknown --example winit
80+ ```
81+
82+ And open the link to view the result in the browser.
7083
7184## Android
7285
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments