Skip to content

[Divergence] Rust SDK replaces the BackendConnector trait with Authenticator and MutationUploader (powersync-native #46) #726

Open

Description

@benitav

What's changing: The Rust SDK removes the BackendConnector trait as a breaking change and splits it into Authenticator (resolve_credentials returns a JWT, which the implementation can cache, plus invalidate_credentials and the optional post_checkpoint_request) and MutationUploader (upload, which an async closure can implement). The PowerSync endpoint is now set statically on SyncOptions instead of being returned in PowerSyncCredentials. SyncOptions::new takes both an authenticator and an uploader, and the new SyncOptions::download_only and SyncOptions::upload_only take only one and run unidirectional sync. The change is unreleased (changelog entry "0.2.0 (unreleased)").

High priority — existing docs are now inaccurate or incomplete

For reviewer consideration — worth documenting

Source PR: powersync-ja/powersync-native#46 — merged 2026-10-27

Filed automatically by Claude Code (claude-sonnet-5-5). A human must verify the scope, prepare the docs PR, and publish it only once this update has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions