From 16a7010457d05edc54f402f739b4c9db11145fd6 Mon Sep 17 00:00:00 2001 From: spacebear Date: Fri, 20 Feb 2026 17:50:09 -0500 Subject: [PATCH] Pin wasm-bindgen-cli to 0.2.108 Version 0.2.109 (released today) depends on time@0.3.47 which requires rustc 1.88.0, breaking CI on our 1.85 toolchain. --- .github/workflows/javascript.yml | 3 ++- payjoin-ffi/javascript/wasm-manifest-patch.toml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 63ab6d4fa..30d240b0a 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -37,8 +37,9 @@ jobs: if: matrix.os == 'macos-latest' run: brew install llvm + # 0.2.109+ requires rustc 1.88 (via time crate). - name: Install wasm-bindgen - run: cargo install --locked wasm-bindgen-cli + run: cargo install --locked wasm-bindgen-cli --version 0.2.108 - name: "Install dependencies" run: npm ci diff --git a/payjoin-ffi/javascript/wasm-manifest-patch.toml b/payjoin-ffi/javascript/wasm-manifest-patch.toml index 86b00af4c..ee54c449d 100644 --- a/payjoin-ffi/javascript/wasm-manifest-patch.toml +++ b/payjoin-ffi/javascript/wasm-manifest-patch.toml @@ -3,6 +3,12 @@ # Because that generated crate doesn't belong to the `payjoin` workspace, we need to patch the generated Cargo.toml accordingly for local development. # The patch is applied via the ubrn.config.yaml `manifestPatchFile` option. # The paths below are relative to payjoin-ffi/javascript/rust_modules/wasm/Cargo.toml +[dependencies] +# Pin wasm-bindgen to match the CLI version in .github/workflows/javascript.yml. +# The generated template uses "*", which resolves to latest. A mismatch between +# the library and CLI versions causes "unreachable" panics at runtime. +wasm-bindgen = "=0.2.108" + [patch.crates-io] payjoin = { path = "../../../../payjoin" } payjoin-directory = { path = "../../../../payjoin-directory" }