14.4K ·GitHub
What is this?
A command-line tool for rewriting an existing app in Rust one piece at a time. Each piece is recorded against the original's behavior and must match before the next piece moves on. Your coding agent or you write the Rust, and the tool orders the work and proves each step.
Is it a library or a tool?
It is a tool. You install a rust-anything binary that runs the loop of analyze, bridge, record, diff and gate. It can also run as an MCP server and install a workflow skill for coding agents, but it does not translate code itself.
How do I get it running?
Run 'npm install -g rust-anything' for JavaScript projects, or download a prebuilt binary from the GitHub releases. Then run 'rust-anything setup' to register the MCP server and the skill with your agents. You can also paste the install prompt into Claude Code, Codex, Cursor or Gemini CLI and let the agent install it.
Do I need a Rust toolchain first?
Not to install the tool, since prebuilt binaries exist for macOS, Linux and Windows. The port itself is Rust code, so you will need a Rust toolchain to build it.
What can it not catch?
It only catches what the recording covers, so behavior outside the recorded cases can still break. Calling Rust once per small function is usually slower than a JIT, so the tool is best at moving hot loops.
Is it for whole apps or just slow functions?
Both. You can port an entire CLI, HTTP server or library unit by unit, or profile the app and move only one hot loop to Rust.
Can I port only the slow part instead of the whole app?
Yes. The profile step finds the hot functions and loops, and you can port just that path while callers keep the original API.
What does the whole-app mode add?
analyze --whole-app plans entry points, dependencies with their Rust crates and the port order. app record and app replay then prove the whole program from the outside, and rust/ files track progress across sessions.
Is it free, and who makes it?
It is MIT licensed and free to use. The README says it is an independent project, not affiliated with or endorsed by the Rust Project or the Rust Foundation.
What are similar projects?
rea, BeautifulRust, codegraph, SwiftUI-Agent-Skill, stitch-skills, last30days-skill, cc-switch-cli, superpowers-zh
Which topics is it in?
migration, ffi, ruby, gemini-cli, golang, java, benchmark, coding-agent, performance, agent-skills, rust, codex