embassy/examples/wasm/README.md
Ulf Lilleengen bd4ae2e952 Enable 'std' feature on critical-section for WASM
This fixes the WASM support which was failing due to missing
critical-section implementation. This also upgrades the bindgen
dependency and ensures that tooling works.
2022-08-23 20:00:34 +02:00

27 lines
415 B
Markdown

# WASM example
Examples use a CLI tool named `wasm-pack` to build this example:
```
cargo install wasm-pack --version 0.9.1
```
## Building
To build the example, run:
```
wasm-pack build --target web
```
## Running
To run the example, start a webserver server the local folder:
```
python -m http.server
```
Then, open a browser at https://127.0.0.1:8000 and watch the ticker print entries to the window.