From 244460ed87849cc19b9f099c501cbc1c48be1543 Mon Sep 17 00:00:00 2001 From: Richard Tjerngren Date: Wed, 7 Apr 2021 14:08:08 +0200 Subject: [PATCH 1/2] [rs] Don't pin web-sys and wasm-bindgen versions Pinning them forces all downstream dependencies to use exactly this version The latest release of wgpu has pinned an old version of wasm-bindgen, forcing users to downgrade wasm-bindgen-cli in order to build --- wgpu/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index a4f8242a74..49ce49d038 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -116,7 +116,7 @@ test = true #wasm-bindgen = { path = "../wasm-bindgen" } [target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen = "=0.2.73" # remember to change version in wiki as well +wasm-bindgen = "0.2.73" # remember to change version in wiki as well web-sys = { version = "=0.3.50", features = [ "Document", "Navigator", From 46d4492b54c84e0823943d6c22e09229ccc75258 Mon Sep 17 00:00:00 2001 From: RichoDemus Date: Wed, 7 Apr 2021 18:21:26 +0200 Subject: [PATCH 2/2] [rs] Use latest version of wasm-bindgen-cli --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e38ed0b32d..b1ebd4c662 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: run: cargo build --release --target wasm32-unknown-unknown --examples - name: Install wasm-bindgen-cli - run: cargo install --force wasm-bindgen-cli --version 0.2.73 + run: cargo install wasm-bindgen-cli - name: Generate JS bindings for the examples run: |