Rust Anything is a source code migration toolkit designed to incrementally convert existing applications into Rust while preserving their original behavior. It supports TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, and PowerShell. Integrated profiling identifies computationally expensive functions and generates prioritized migration plans. The toolkit records original application behavior, including return values, errors, console output, and supported external side effects. Compatible AI coding agents implement Rust replacements that undergo automated comparison and validation. Intermediate bridges allow migrated components to coexist with original implementations. Whole-application migration supports command-line programs and HTTP servers. GitHub Actions integration facilitates continuous verification against recorded behavioral expectations.
Features
- Incremental source code migration to Rust from eleven supported programming languages and scripting environments
- Performance profiling and prioritized migration planning based on actual application workloads
- Original behavior recording with automated comparison of return values, errors, outputs, and external side effects
- AI-assisted code conversion with validation through formatting, Clippy, compilation, and automated testing
- Intermediate language bridges enabling gradual replacement of existing functions with native Rust implementations
- Whole-application migration for command-line utilities and HTTP servers with behavioral drift detection and CI integration