Commit afa09181 authored by Florian Blasius's avatar Florian Blasius 🤘

Add web example description to readme.

parent 973e9247
......@@ -81,6 +81,36 @@ You can start the widgets example by executing the following command:
cargo run --example widgets --release
```
## Additional Examples on Web
To run the examples on a browser you have to install
```text
cargo install -f cargo-web
```
## Run
You can start the widgets example by executing the following command:
* Compile to [WebAssembly](https://en.wikipedia.org/wiki/WebAssembly) using Rust's native WebAssembly backend:
```text
cargo web start --target=wasm32-unknown-unknown --auto-reload --example widgets
```
* Compile to [asm.js](https://en.wikipedia.org/wiki/Asm.js) using Emscripten:
```text
$ cargo web start --target=asmjs-unknown-emscripten --auto-reload --example widgets
```
* Compile to WebAssembly using Emscripten:
```text
$ cargo web start --target=wasm32-unknown-emscripten --auto-reload --example widgets
```
## Build and run documentation
You can build and run the latest documentation y executing the following command:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment