mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Pin web-sys version
This commit is contained in:
@@ -96,8 +96,8 @@ test = true
|
||||
objc = "0.2.7"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = "0.2.68"
|
||||
web-sys = { version = "0.3.45", features = [
|
||||
wasm-bindgen = "=0.2.68" # remember to change version in readme as well
|
||||
web-sys = { version = "=0.3.45", features = [
|
||||
"Document",
|
||||
"Navigator",
|
||||
"Node",
|
||||
|
||||
@@ -42,7 +42,7 @@ To run examples on the `wasm32-unknown-unknown` target, first build the example
|
||||
# Checkout `gecko` branch that matches the state of Firefox
|
||||
git checkout upstream/gecko
|
||||
# Install or update wasm-bindgen-cli
|
||||
cargo install -f wasm-bindgen-cli
|
||||
cargo install -f wasm-bindgen-cli --version 0.2.68
|
||||
# Build with the wasm target
|
||||
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --target wasm32-unknown-unknown --example hello-triangle
|
||||
# Generate bindings in a `target/generated` directory
|
||||
|
||||
Reference in New Issue
Block a user