diff options
| author | Ulf Lilleengen <[email protected]> | 2022-08-23 19:55:49 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-08-23 20:00:34 +0200 |
| commit | bd4ae2e9526cb66c15b7335cfbc803106637c7e1 (patch) | |
| tree | ab9aaab342dd7a6b32ae0ee2679836ffba9e9638 /examples | |
| parent | 6530c179b2efffa19fe5d7e336837692e0365af4 (diff) | |
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.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/wasm/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/wasm/README.md | 2 |
2 files changed, 2 insertions, 2 deletions
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" | |||
| 15 | wasm-bindgen = "0.2" | 15 | wasm-bindgen = "0.2" |
| 16 | web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } | 16 | web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] } |
| 17 | log = "0.4.11" | 17 | log = "0.4.11" |
| 18 | critical-section = "1.1" | 18 | 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 @@ | |||
| 3 | Examples use a CLI tool named `wasm-pack` to build this example: | 3 | Examples use a CLI tool named `wasm-pack` to build this example: |
| 4 | 4 | ||
| 5 | ``` | 5 | ``` |
| 6 | cargo install wasm-pack | 6 | cargo install wasm-pack --version 0.9.1 |
| 7 | ``` | 7 | ``` |
| 8 | 8 | ||
| 9 | ## Building | 9 | ## Building |
