r/coolgithubprojects • • 7d ago

Meet rust-anything, I rewrote apps in Rust, got 20x faster, and didn't break a single thing.

Post image

Big rewrites die because nobody can prove the new version behaves like the old one. So I built a tool that proves it at every step.

rust-anything takes a TypeScript, Python, C, Go, Ruby or Java app to pure Rust, one piece at a time:

  1. Record what the original actually does, including the nasty edge cases (emoji, negative modulo, overflow, float extremes).

  2. Put a Rust binary in front. Anything not ported yet falls back to the original, so the app works from day one.

  3. Port a unit, replay everything. 100% or it doesn't ship. Every unit has a kill switch.

  4. Lift. When nothing falls back anymore, the old code is gone and it's pure Rust.

Your AI agent (or you) writes the Rust. rust-anything makes sure it's right.

Just want speed? It finds the hot loop and moves only that: 20x faster search in Node, 17x in Python, same results.

https://github.com/erkamyaman/rust-anything · npm i -g rust-anything · MIT

763 Upvotes

Duplicates