rust-anything, an open-source tool that rewrites apps in Rust and verifies with recordings that they behave exactly like the original(github.com)
Writing language: KoreanRead in the original language
Plain summary
- It first records what results or errors the original app produces for various inputs, then checks Rust code written by a coding agent or a person, piece by piece, against those recordings. It is not a tool that automatically translates code.
- It targets Node.js, Python, C, Go, Ruby, Java and Kotlin apps. You can replace just one slow part with Rust or move the whole app to a Rust program. It was created by the developer erkamyaman.
- According to the developer's own measurements (Apple M4), the Rust port of the code formatter Prettier cut the time to process 2,360 JS/TS files from 128.6 seconds to 6.9 seconds. The results of 17,224 recorded runs matched the original byte for byte, and the original Prettier handles the parts that have not been ported yet.
- It can only catch cases that are in the recordings. Because the original code is run many times during recording and comparison, it advises running apps that write files, use a database or make network calls on a copy and a test database.
Found on
GitHub ↗ / 9,031 stars
Have you run into something like this? Tell us in a line or two what you did. You do not need to know the product.