r/opensourcealternative • • 2d ago

Maker (I built this) rust-anything: open source alternative to paid code migration services. Ports your code to Rust and proves it behaves the same

Post image

Category: developer tools / code migration

Replaces: paid code migration and modernization services, where you pay someone to rewrite your code and hope it still works the same.

GitHub: https://github.com/erkamyaman/rust-anything

rust-anything records what your original code actually does, then you (or an AI agent like Claude Code) port it to Rust one piece at a time. Every piece has to match the recordings byte for byte before it counts, and anything not ported yet keeps running the original, so the app keeps working.

What it has ported so far, all measured on an Apple M4 (sources below):

- ESLint: 10,585/10,585 runs identical, 25.9x faster per run. Installable: npm i -g eslint-rs

- Prettier: 17,224/17,224 runs identical, 19x faster

- Fuse.js search: 32x faster per query

- json-server: idle memory from 74 MB to 3.5 MB

- ffmpeg's libavutil: 226,447 calls matched against the real C, at about C's speed

Works with TypeScript/JS, Python, Go, Ruby, Java, Kotlin and C. Free, MIT, runs locally.

GitHub: https://github.com/erkamyaman/rust-anything

Benchmarks and how they were measured: https://github.com/erkamyaman/rust-anything/blob/main/docs/real-world.md

5 Upvotes

0 comments sorted by