Skip to content

[Divergence] Sync-rules package adds a Rust schema generator (powersync-service #789) #635

Description

@benitav

What's changing: The @powersync/service-sync-rules package, which backs the CLI's generate schema command and the PowerSync Dashboard's client schema generation, adds a rust schema generator that outputs an app_schema() function matching the Rust SDK's expected shape, with table and column names escaped.

High priority — existing docs are now inaccurate or incomplete
None identified. The Rust SDK Reference already shows a hand-written schema.rs example in the same shape this generator produces, so nothing existing is contradicted.

For reviewer consideration — worth documenting

  • PowerSync CLI (https://docs.powersync.com/tools/cli), "1. Define the Client-Side Schema" section and the Common Commands table: powersync generate schema --output= now accepts rust as a supported output type. No page lists the full set of supported output languages, so this is a new capability rather than a correction.
  • Rust SDK Reference (https://docs.powersync.com/client-sdks/reference/rust), "1. Define the Client-Side Schema" section: the existing schema.rs example is hand-written; worth noting readers can now generate this file automatically via the CLI or Dashboard, as already described for the other SDKs through the shared "Generate schema automatically" callout.

Source PR: powersync-ja/powersync-service#789 — merged 2026-09-09.

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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