embassy/examples/wasm
Piotr Esden-Tempski 858ddf6777 Added debug=2 in release profile to all examples.
This makes rtt output work right when using `cargo run` in release mode.

Debug was already enabled for release builds in some of the examples but
not all.
2023-07-26 18:32:40 -07:00
..
src Update Rust nightly. 2023-05-19 17:12:39 +02:00
Cargo.toml Added debug=2 in release profile to all examples. 2023-07-26 18:32:40 -07:00
index.html Add WASM support for executor 2021-09-13 16:42:39 +02:00
README.md Enable 'std' feature on critical-section for WASM 2022-08-23 20:00:34 +02:00

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.