Skip to content

Nixify Javascript FFi tests#1572

Merged
spacebear21 merged 3 commits into
payjoin:masterfrom
benalleng:msrv-js-test
May 21, 2026
Merged

Nixify Javascript FFi tests#1572
spacebear21 merged 3 commits into
payjoin:masterfrom
benalleng:msrv-js-test

Conversation

@benalleng
Copy link
Copy Markdown
Collaborator

@benalleng benalleng commented May 21, 2026

./payjoin-ffi/javascript/contrib/test.sh was failing within the nix develop .#msrv dev shell.

The first commit fixes the failure itself and the second commit is a way for the workflow to ensure that it always runs and a step further in nixifying the CI. Currently this still selects our current msrv to be locked at 1.85.0 but perhaps this is too strict and not really necessary for the users of the ffi bindings and maybe we should choose a higher fixed stable "ssrv"

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 21, 2026

Coverage Report for CI Build 26251069322

Coverage remained the same at 85.14%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 13701
Covered Lines: 11665
Line Coverage: 85.14%
Coverage Strength: 394.85 hits per line

💛 - Coveralls

@benalleng benalleng marked this pull request as draft May 21, 2026 19:02
@spacebear21
Copy link
Copy Markdown
Collaborator

sidenote: i think we should evaluate moving off of MSRV for payjoin-ffi to avoid constant dependency headaches with uniffi-rs and third party generator libraries. payjoin-ffi is just generator code, so MSRV compatibility is mostly irrelevant for downstream language consumers. We'll still want to pin to a specific rust version instead of just "stable" to ensure reproducible builds, but it doesn't need to be as low as 1.85.

@benalleng
Copy link
Copy Markdown
Collaborator Author

Ok! I was going to ask about this but stuck with msrv for now, going to validate first that we can limit this down to only needing the nix step similar to #1536

benalleng added 3 commits May 21, 2026 16:20
This commit adds wasm32-unknown-unknown to fix a bug where rustup target
add was ignored by generate_bindings.sh

As well adds env configuration to fix a bug where cc-rs is invoked in
the new target.

Add bindgen-cli pin in nix
@benalleng benalleng marked this pull request as ready for review May 21, 2026 20:43
Copy link
Copy Markdown
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, CI looks good and takes about as long as before

@spacebear21 spacebear21 merged commit 43063b0 into payjoin:master May 21, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants