aboutsummaryrefslogtreecommitdiff
path: root/examples/wasm
diff options
context:
space:
mode:
author1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
committer1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
commit6bb3d2c0720fa082f27d3cdb70f516058497ec87 (patch)
tree5a1e255cff999b00800f203b91a759c720c973e5 /examples/wasm
parenteb685574601d98c44faed9a3534d056199b46e20 (diff)
parent92a6fd2946f2cbb15359290f68aa360953da2ff7 (diff)
Merge branch 'main' into rp2040-rtc-alarm
Diffstat (limited to 'examples/wasm')
-rw-r--r--examples/wasm/Cargo.toml12
-rw-r--r--examples/wasm/src/lib.rs2
2 files changed, 10 insertions, 4 deletions
diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml
index 3a27f913c..e8897506c 100644
--- a/examples/wasm/Cargo.toml
+++ b/examples/wasm/Cargo.toml
@@ -3,14 +3,15 @@ edition = "2021"
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.2", path = "../../embassy-sync", features = ["log"] } 12embassy-sync = { version = "0.7.2", path = "../../embassy-sync", features = ["log"] }
12embassy-executor = { version = "0.7.0", path = "../../embassy-executor", features = ["arch-wasm", "executor-thread", "log"] } 13embassy-executor = { version = "0.9.0", path = "../../embassy-executor", features = ["arch-wasm", "executor-thread", "log"] }
13embassy-time = { version = "0.4.0", 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"
@@ -19,3 +20,8 @@ log = "0.4.11"
19 20
20[profile.release] 21[profile.release]
21debug = 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}