erkamyaman/rust-anything

rust-anything first records the existing inputs and outputs of Node.js / TypeScript, Python, C, Go, Ruby, and Java programs, then lets an agent (or you) write a Rust version. It uses commands like profile, bridge, record, diff, bench, and gate to identify hotspots, generate bridges, compare results case by case, and benchmark performance; completion is only recognized when all checks pass. You can migrate an entire application or just move a single slow loop. The setup command registers the MCP service and workflow skills into Claude Code, Codex, Cursor, and Gemini CLI, backing up original configuration files before making changes.

rust-anything first records the existing inputs and outputs of Node.js / TypeScript, Python, C, Go, Ruby, and Java programs, then lets an agent (or you) write a Rust version. It uses commands like profile, bridge, record, diff, bench, and gate to identify hotspots, generate bridges, compare results case by case, and benchmark performance; completion is only recognized when all checks pass. You can migrate an entire application or just move a single slow loop. The setup command registers the MCP service and workflow skills into Claude Code, Codex, Cursor, and Gemini CLI, backing up original configuration files before making changes.

Why it matters It doesn't translate code for you; instead, it provides agents with hotspot analysis, call bridging, behavior recording and replay, and a "ready to ship" gate, ensuring rewrites are evidence-based.

Stars 1153 (+64 / 24h)

Reasons

  • 64 new stars in 24 hours, total stars 1153, ranked #4 on Trendshift for the day (indicating attention only); MIT license, created on 16 11
  • Every speedup figure in the README is accompanied by benchmarks from the demo directory, and it explicitly lists "what it can't catch": unrecorded inputs, regex differences, and outputs that change with each run

Usage

  • After running cargo install rust-anything, execute rust-anything setup, then tell the agent: "Use rust-anything to rewrite this CLI in Rust and prove behavioral consistency"

Risks

  • The author claims a maximum speedup of 20x, based on the author's own benchmarks; converting small functions called only once to Rust might actually make them slower
  • Passing acceptance only means the recorded test cases are consistent; PHP and C# support remains in preview

Open

Trendshift(GitHub Trending 快照)

Explore the latest AI Radar updates