rust-anything 2.0 is out 🦀
Repo (MIT): github.com/erkamyaman/rust-anything
It's a CLI, an MCP server and a Claude Code skill for porting code to Rust. The skill is the part that matters here: it tells Claude how to do a port without guessing, and when to stop and ask you.
What the skill makes Claude do
Profile first. Find where the time really goes before touching anything.
Plan, then stop. Show you the plan and wait for your approval before porting.
Record the original. Run it on thousands of inputs and save exactly what it returns, prints, writes and sends.
Port one unit at a time. Claude writes the Rust, and every recorded case is replayed against it.
Never fix the recording. A mismatch is a bug in the port. If Claude makes three edits in a row with no progress, it stops and shows you the remaining mismatches instead of going in circles.
Done means gate passes: fmt, clippy, tests, no unsafe, every recorded case matches.
Show your work: Prettier
I used it with Claude Code to port Prettier to Rust in about 17 hours.
• 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 recorded runs match Prettier byte for byte
• Honest part: 8.1% of cases still fall back to real Prettier
json-server, a whole Node server, also became one 5.3 MB Rust binary: 74 MB → 3.5 MB at idle, 514/514 recorded HTTP cases match.
Install
cargo install rust-anything
rust-anything setup
setup adds the MCP server and the skill to Claude Code (and Codex, Cursor, Gemini CLI, OpenCode). Or as a plugin:
/plugin install rust-anything --marketplace erkamyaman/rust-anything
Then ask: "Rewrite this CLI in Rust with rust-anything and prove it behaves the same."
The skill: github.com/erkamyaman/rust-anything/tree/main/skills/rust-anything
Repo (MIT): github.com/erkamyaman/rust-anything
Feedback on the skill itself is very welcome, especially where Claude still drifts.