aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-09-05 11:39:59 +0000
committerGitHub <[email protected]>2024-09-05 11:39:59 +0000
commitb8fa5cdf06f54cda1895b6d5e8d3b436dbce08ac (patch)
tree7a7fb9db35fd9667ecaaeadb05a5d8da6c97585a
parente0b5d69d57c261df0d1acf0fdb4233665a2520a0 (diff)
parentdb00f3f5ecbf7f9a8acb340556b8fc6b156736fa (diff)
Merge pull request #3312 from 9SMTM6/fix_wasm_linking
Enable critical-section/std on wasm
-rw-r--r--embassy-executor/Cargo.toml2
-rw-r--r--examples/wasm/Cargo.toml1
2 files changed, 1 insertions, 2 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml
index 5984cc49c..01fa28b88 100644
--- a/embassy-executor/Cargo.toml
+++ b/embassy-executor/Cargo.toml
@@ -79,7 +79,7 @@ arch-cortex-m = ["_arch", "dep:cortex-m"]
79## RISC-V 32 79## RISC-V 32
80arch-riscv32 = ["_arch"] 80arch-riscv32 = ["_arch"]
81## WASM 81## WASM
82arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"] 82arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys", "critical-section/std"]
83## AVR 83## AVR
84arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"] 84arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"]
85 85
diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml
index 9bd37550c..75de079b7 100644
--- a/examples/wasm/Cargo.toml
+++ b/examples/wasm/Cargo.toml
@@ -16,7 +16,6 @@ wasm-logger = "0.2.0"
16wasm-bindgen = "0.2" 16wasm-bindgen = "0.2"
17web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } 17web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] }
18log = "0.4.11" 18log = "0.4.11"
19critical-section = { version = "1.1", features = ["std"] }
20 19
21[profile.release] 20[profile.release]
22debug = 2 21debug = 2