From 21072bee48ff6ec19b79e0d9527ad8cc34a4e9e0 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 22 Aug 2022 21:46:09 +0200 Subject: split `embassy-util` into `embassy-futures`, `embassy-sync`. --- examples/wasm/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/wasm') diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml index c7f980366..194e8f4b8 100644 --- a/examples/wasm/Cargo.toml +++ b/examples/wasm/Cargo.toml @@ -7,7 +7,7 @@ version = "0.1.0" crate-type = ["cdylib"] [dependencies] -embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["log"] } +embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["log"] } embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["log", "wasm", "nightly", "integrated-timers"] } embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["log", "wasm", "nightly"] } -- cgit From bd4ae2e9526cb66c15b7335cfbc803106637c7e1 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Tue, 23 Aug 2022 19:55:49 +0200 Subject: 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. --- examples/wasm/Cargo.toml | 2 +- examples/wasm/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/wasm') diff --git a/examples/wasm/Cargo.toml b/examples/wasm/Cargo.toml index 194e8f4b8..ea61fb921 100644 --- a/examples/wasm/Cargo.toml +++ b/examples/wasm/Cargo.toml @@ -15,4 +15,4 @@ wasm-logger = "0.2.0" wasm-bindgen = "0.2" web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } log = "0.4.11" -critical-section = "1.1" +critical-section = { version = "1.1", features = ["std"] } diff --git a/examples/wasm/README.md b/examples/wasm/README.md index 4bed4a797..b7fee2dc8 100644 --- a/examples/wasm/README.md +++ b/examples/wasm/README.md @@ -3,7 +3,7 @@ Examples use a CLI tool named `wasm-pack` to build this example: ``` -cargo install wasm-pack +cargo install wasm-pack --version 0.9.1 ``` ## Building -- cgit