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.
This commit is contained in:
Ulf Lilleengen
2022-08-23 19:55:49 +02:00
parent 6530c179b2
commit bd4ae2e952
4 changed files with 5 additions and 5 deletions

View File

@ -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"] }

View File

@ -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