Improve web example (#2115)

* Improve web example

* Implement basic logger into the example webpage

* Repace bash script with xtask

* replace wasm-bindgen-cli with wasm-bindgen-cli-support

* refactor

* Move logic into external crate.

* Remove CI changes

* Review feedback
This commit is contained in:
Lucas Kent 2022-02-25 22:57:46 +11:00 committed by GitHub
parent 40f48cbeb4
commit b7e7755edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 13 deletions

View file

@ -71,6 +71,8 @@ Winit provides the following features, which can be enabled in your `Cargo.toml`
#### WebAssembly
To run the web example: `cargo run-wasm --example web`
Winit supports compiling to the `wasm32-unknown-unknown` target with `web-sys`.
On the web platform, a Winit window is backed by a `<canvas>` element. You can