Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions payjoin-ffi/javascript/wasm-manifest-patch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
Loading