Skip to content

feat(fmt): enable cache by default - #228

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-default-cache
Aug 7, 2026
Merged

feat(fmt): enable cache by default#228
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-default-cache

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR enables the persistent formatting cache by default for file-based rs fmt runs, allowing unchanged files to be skipped across write, check, and list-different modes.

It adds --no-cache for explicit opt-out, stores the cache under the resolved configuration root, and falls back to uncached formatting when the cache directory is unavailable. Stdin and empty-discovery runs continue without creating cache state.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: cad4ab3
Status: ✅  Deploy successful!
Preview URL: https://9171edbe.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-default.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit faee251 into main Aug 7, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-default-cache branch August 7, 2026 02:20
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.

1 participant