From 0c213ec85d09ec1dec698fcf3c7c853221f70961 Mon Sep 17 00:00:00 2001 From: Rukai Date: Thu, 10 Sep 2020 23:10:07 +1000 Subject: [PATCH] [rs] Pin web-sys version --- wgpu/Cargo.toml | 4 ++-- wgpu/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index b9a6b2f03d..87f685f235 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -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", diff --git a/wgpu/README.md b/wgpu/README.md index d22825db91..19098588e8 100644 --- a/wgpu/README.md +++ b/wgpu/README.md @@ -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