From a2ab4ac58cc0a83855a3197acb3a4108068d8397 Mon Sep 17 00:00:00 2001 From: Richard Tjerngren Date: Wed, 7 Apr 2021 14:08:08 +0200 Subject: [PATCH 1/2] 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 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a4f8242a7..49ce49d03 100644 --- a/Cargo.toml +++ b/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 8b340769958af5414aa4796d0b07bb1d8258209f Mon Sep 17 00:00:00 2001 From: RichoDemus Date: Wed, 7 Apr 2021 18:21:26 +0200 Subject: [PATCH 2/2] 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 e38ed0b32..b1ebd4c66 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: |