Pickrust-anything: Verifying 20x Speed Improvements When Rewriting TypeScript, Python, and Go Apps in Rust
erkamyaman/rust-anything
About the project
A tool that ensures existing applications continue to work correctly when migrated to Rust. It targets CLIs, HTTP servers, and libraries written in TypeScript, Python, C, Go, Ruby, and Java. Instead of directly translating code, it records the actual execution results of the existing app and compares them against the Rust rewrite.
It starts with profiling to identify bottlenecks and generates the bridge code needed to port those parts to Rust. It replays the recorded 38,251 test cases to verify that the Rust version's output matches the original, providing a gate that only allows deployment if all cases pass. It demonstrated up to a 20x performance improvement, such as reducing response time from 10ms to 0.5ms in an x18n sidebar search example.
It integrates with major coding agents such as Claude Code, Codex, Cursor, and Gemini CLI via MCP servers. Developers can either write Rust code themselves or instruct an agent to do so, while rust-anything provides criteria for determining where time is spent, the order in which to migrate, and whether the migration is complete. PHP support is in preview, and full app recording and replay features are already supported.
It is suitable for developers who want to speed up only specific slow functions or gradually migrate an entire app to Rust. By maintaining existing APIs and replacing only the internal implementation, it minimizes changes to caller code. It is released under the MIT license and is an independent project unrelated to the Rust Foundation.
erkamyaman/rust-anything
Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin and PowerShell.
Rust