Skip to content

Commit 16a7010

Browse files
committed
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.
1 parent 1a7effa commit 16a7010

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/javascript.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ jobs:
3737
if: matrix.os == 'macos-latest'
3838
run: brew install llvm
3939

40+
# 0.2.109+ requires rustc 1.88 (via time crate).
4041
- name: Install wasm-bindgen
41-
run: cargo install --locked wasm-bindgen-cli
42+
run: cargo install --locked wasm-bindgen-cli --version 0.2.108
4243

4344
- name: "Install dependencies"
4445
run: npm ci

payjoin-ffi/javascript/wasm-manifest-patch.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# Because that generated crate doesn't belong to the `payjoin` workspace, we need to patch the generated Cargo.toml accordingly for local development.
44
# The patch is applied via the ubrn.config.yaml `manifestPatchFile` option.
55
# The paths below are relative to payjoin-ffi/javascript/rust_modules/wasm/Cargo.toml
6+
[dependencies]
7+
# Pin wasm-bindgen to match the CLI version in .github/workflows/javascript.yml.
8+
# The generated template uses "*", which resolves to latest. A mismatch between
9+
# the library and CLI versions causes "unreachable" panics at runtime.
10+
wasm-bindgen = "=0.2.108"
11+
612
[patch.crates-io]
713
payjoin = { path = "../../../../payjoin" }
814
payjoin-directory = { path = "../../../../payjoin-directory" }

0 commit comments

Comments
 (0)