This technology is an automated C-to-Rust translation platform that helps modernize legacy software by reducing unsafe code while preserving program functionality.
Large C codebases remain difficult to secure and maintain because memory safety and concurrency errors can lead to vulnerabilities, crashes, and costly engineering work. Although Rust offers memory and thread safety with performance suitable for systems software, manually converting large C projects to Rust is labor-intensive, slow, and error prone. Existing automated approaches often produce unsafe or hard-to-maintain Rust, while LLM-based approaches can struggle with project-scale context and may introduce functional errors. There is a need for scalable tools that can reliably migrate legacy C software into safe, maintainable Rust without sacrificing correctness or performance.
C2SAFERRUST uses a hybrid translation workflow to convert C projects into safer Rust while preserving the intended behavior of the original code. The system first uses rule-based transpilation to generate an initial Rust version, then breaks the translated code into smaller units that can be individually refined with large language models. Static analysis is used to identify dependencies and provide relevant context for each translation step, helping the system improve safety and readability while maintaining compatibility across the larger codebase.
The translated code is validated through compilation and end-to-end test cases after each refinement step. In reported testing on real-world programs, C2SAFERRUST reduced raw pointer use by up to 38% and unsafe Rust code by up to 28%, while the resulting programs continued to pass all test cases.
Patent pending
IR CU26072
Licensing Contact: Greg Maskel