aboutsummaryrefslogtreecommitdiff
path: root/examples/wasm
diff options
context:
space:
mode:
authorDion Dokter <[email protected]>2025-11-20 13:22:38 +0100
committerDion Dokter <[email protected]>2025-11-20 13:22:38 +0100
commit4f2c36e447455e8d33607d586859d3d075cabf1d (patch)
tree003cd822d688acd7c074dd229663b4648d100f71 /examples/wasm
parent663732d85abbae400f2dbab2c411802a5b60e9b1 (diff)
parent661874d11de7d93ed52e08e020a9d4c7ee11122d (diff)
Merge branch 'main' into u0-lcd
Diffstat (limited to 'examples/wasm')
-rw-r--r--examples/wasm/Cargo.toml15
-rw-r--r--examples/wasm/src/lib.rs2
2 files changed, 11 insertions, 6 deletions
diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml
index 9d7acc175..79d50b584 100644
--- a/examples/wasm/Cargo.toml
+++ b/examples/wasm/Cargo.toml
@@ -1,22 +1,27 @@
1[package] 1[package]
2edition = "2021" 2edition = "2024"
3name = "embassy-wasm-example" 3name = "embassy-wasm-example"
4version = "0.1.0" 4version = "0.1.0"
5license = "MIT OR Apache-2.0" 5license = "MIT OR Apache-2.0"
6publish = false
6 7
7[lib] 8[lib]
8crate-type = ["cdylib"] 9crate-type = ["cdylib"]
9 10
10[dependencies] 11[dependencies]
11embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["log"] } 12embassy-sync = { version = "0.7.2", path = "../../embassy-sync", features = ["log"] }
12embassy-executor = { version = "0.5.0", path = "../../embassy-executor", features = ["arch-wasm", "executor-thread", "log", "integrated-timers"] } 13embassy-executor = { version = "0.9.0", path = "../../embassy-executor", features = ["arch-wasm", "executor-thread", "log"] }
13embassy-time = { version = "0.3.1", path = "../../embassy-time", features = ["log", "wasm", ] } 14embassy-time = { version = "0.5.0", path = "../../embassy-time", features = ["log", "wasm", ] }
14 15
15wasm-logger = "0.2.0" 16wasm-logger = "0.2.0"
16wasm-bindgen = "0.2" 17wasm-bindgen = "0.2"
17web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } 18web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] }
18log = "0.4.11" 19log = "0.4.11"
19critical-section = { version = "1.1", features = ["std"] }
20 20
21[profile.release] 21[profile.release]
22debug = 2 22debug = 2
23
24[package.metadata.embassy]
25build = [
26 { target = "wasm32-unknown-unknown", artifact-dir = "out/examples/wasm" }
27]
diff --git a/examples/wasm/src/lib.rs b/examples/wasm/src/lib.rs
index 71cf980dd..170c97fb7 100644
--- a/examples/wasm/src/lib.rs
+++ b/examples/wasm/src/lib.rs
@@ -24,5 +24,5 @@ async fn ticker() {
24#[embassy_executor::main] 24#[embassy_executor::main]
25async fn main(spawner: Spawner) { 25async fn main(spawner: Spawner) {
26 wasm_logger::init(wasm_logger::Config::default()); 26 wasm_logger::init(wasm_logger::Config::default());
27 spawner.spawn(ticker()).unwrap(); 27 spawner.spawn(ticker().unwrap());
28} 28}