Skip to content

feat(fmt): cache write results - #227

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

feat(fmt): cache write results#227
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-write-cache

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR extends the internal rs fmt content cache to write mode without enabling the cache in the CLI yet. Clean hits skip formatter loading, while dirty hits continue formatting and successful writes persist the hash of the final formatted content as clean. Cold writes hash only the content that will be cached, avoiding an unnecessary source hash while keeping file I/O bounded by the worker pool.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd50a6a
Status: ✅  Deploy successful!
Preview URL: https://abaa4b97.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-write-ca.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit fabe1b1 into main Aug 7, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-write-cache branch August 7, 2026 01:35
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