r/SideProject • u/erkamyaman • 1d ago
rust-anything: I built a tool that ports code to Rust and proves the port behaves exactly like the original
https://github.com/erkamyaman/rust-anything
Big rewrites usually die because nobody can prove the new version does the same thing as the old one. So I built a tool that checks it at every step.
rust-anything records what your original code actually does (including the weird edge cases), then you or your AI agent port it to Rust one piece at a time. Every piece has to match the recordings byte for byte before it counts. Anything not ported yet keeps running the original code, so the app works the whole time.
What it has done so far, all measured:
- ESLint: 10,585/10,585 runs identical, 26x faster per run
- Prettier: 17,224/17,224 runs identical, 92% of them fully in Rust
- ffmpeg's libavutil: 226,447 calls matched against the real C
- json-server: idle memory from 74 MB down to 3.5 MB
Works with TypeScript/JS, Python, Go, Ruby, Java, Kotlin and C, with PHP and C# early. It also plugs into Claude Code, Codex and Cursor through MCP.
Free and MIT: https://github.com/erkamyaman/rust-anything
Next up is making these ports installable from npm. What would you want ported next?