โ† sources

rust-anything 2.0 is out ๐Ÿฆ€ Two days ago I posted this tool here. Since then Claude Code used it to port Prettier to Rust: 19x faster, 17,224/17,224 runs match byte for byte

source: reddit (reddit:ClaudeAI)published 2026-11-19 11:10ingested 2026-11-20 02:36

retained text

rust-anything 2.0 is out ๐Ÿฆ€

[github.com/erkamyaman/rust-anything](http://github.com/erkamyaman/rust-anything)

Two days ago I shared rust-anything here: a tool that lets Claude rewrite an app in Rust and prove nothing broke at every step. Some of you asked whether it holds up on something big and real. So I pointed Claude Code at Prettier.



What Claude did, in about 17 hours



โ€ข Recorded 17,224 real Prettier runs (its own test fixtures, common options, real repos, config files)

โ€ข Put a Rust front door in front of Prettier and ported it piece by piece, \~36,500 lines of Rust

โ€ข After every change, replayed all recorded runs. A single byte of difference = not done.



Result

โ€ข CLI, 2,360 JS/TS files: 128.6 s โ†’ 6.9 s (19x)

โ€ข 10 languages: JS, TS, JSX, JSON, GraphQL, YAML, Markdown, CSS, SCSS, Less

โ€ข 17,224/17,224 runs match Prettier byte for byte

โ€ข Honest part: 8.1% of cases still fall back to real Prettier



What I learned about Claude doing a port this size

โ€ข It needs ground truth, not vibes. With every recorded case replayed after each change, Claude couldn't "almost" match.

โ€ข It needs to be told when to stop. The skill makes Claude stop and ask after three edits with no progress, instead of looping.

โ€ข It should never touch the recording. A mismatch is a bug in the port, not in the test.



New in 2.0

โ€ข Side effects: a rewrite that prints the same output but sends an email twice now fails.

โ€ข map: after pulling upstream changes, it tells you which ports are stale.



Free and open source (MIT). Install: cargo install rust-anything, then rust-anything setup (adds the MCP server and skill to Claude Code).



[github.com/erkamyaman/rust-anything](http://github.com/erkamyaman/rust-anything)

document fetched 2026-11-20 00:22 ยท canonical https://reddit.com/r/ClaudeAI/comments/1y06sk0/rustanything_20_is_out_two_days_ago_i_posted_this