rust-anything uses Claude for incremental Rust migration with behavior checks
Developer /u/erkamyaman released rust-anything, an MIT-licensed tool that asks Claude to incrementally port TypeScript/JavaScript, Python, C, Go, Ruby, or Java applications to Rust. It records application behavior, runs each case twice, and ignores values that vary between runs. Unported components fall back to the original implementation, while ported components must pass formatting, linting, tests, error-path coverage, and full replay gates before the fallback is removed. The developer reported performance gains of up to 20 times in one case.
rust-anything combines AI-assisted migration with behavioral record-and-replay checks and fallback to original implementations, addressing the risk that an automated rewrite changes application behavior.
| Asking an agent to "rewrite this in Rust" usually ends with a big diff and no idea if it still behaves the same. So I built rust-anything: Claude writes the Rust, and the tool keeps it honest. Repo: https://github.com/erkamyaman/rust-anything What it does How it works with Claude How Claude helped build it Built with Claude Code (Opus). I set the direction and made the calls; Claude did most of the work: Try it (free, MIT) Happy to answer questions, and I'd love to hear what broke for you in big rewrites that recorded cases wouldn't have caught. submitted by /u/erkamyaman [link] [comments] |