# 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 — retained record

> Retained reddit record from reddit:ClaudeAI.

Canonical: https://highsignal.app/data/records/57c0289276949dc5

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeAI)  published 2026-11-19 11:10 ingested 2026-11-20 02:36

[original source ↗](https://www.reddit.com/r/ClaudeAI/comments/1y06sk0/rustanything_20_is_out_two_days_ago_i_posted_this/)

## 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
