Skip to content

Expose InMemoryPersister in FFI#1533

Open
spacebear21 wants to merge 4 commits intopayjoin:masterfrom
spacebear21:ffi-in-memory-persister
Open

Expose InMemoryPersister in FFI#1533
spacebear21 wants to merge 4 commits intopayjoin:masterfrom
spacebear21:ffi-in-memory-persister

Conversation

@spacebear21
Copy link
Copy Markdown
Collaborator

@spacebear21 spacebear21 commented May 6, 2026

Implements #1529

One deviation from that spec is that I chose not to feature gate them behind _test-utils. That seems like unnecessary complexity which also deviates from the core rust library. Since we expose InMemoryPersister there for "production" I think it makes sense to expose that utility in the FFI surface too.

Implementation by Claude Opus 4.7

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 6, 2026

Coverage Report for CI Build 25525571946

Coverage remained the same at 85.169%

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: 13519
Covered Lines: 11514
Line Coverage: 85.17%
Coverage Strength: 400.01 hits per line

💛 - Coveralls

9df60104aca83375f084f517de5a77c7d257afc6 introduced a fix for callback
traits necessary for using InMemoryPersister in dart bindings.
This exposes in-memory implementations of the JSON session persister
traits, as a counterpart to the InMemoryPersister trait which is now
exposed in the Rust library
Instead of re-implementing the same persister in each language, we can
now use the InMemoryPersister wrappers exposed in the FFI bindings.
Move the preexisting JSON persister traits and callback adapters to
persist.rs for clearer organization.
@spacebear21 spacebear21 requested a review from DanGould May 8, 2026 02:00
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.

2 participants