Microsoft's Initiative to Replace C/C++ Codebase with Rust Using AI
Regulatory & Policy · 2 sources · Updated 5mo ago · First seen Dec 24, 2025

Microsoft has announced a strategic initiative to eliminate all C and C++ code from its software portfolio by 2030, aiming to rewrite its codebase in the memory-safe language Rust. The company is leveraging a combination of AI and advanced algorithms to automate the translation of legacy code, with the goal of enabling a single engineer to convert up to one million lines of code in a month. This effort is supported by the development of new internal tools and the recruitment of specialized engineers to drive the transition, as detailed by Microsoft distinguished engineer Galen Hunt.
The move to Rust is motivated by the language's inherent memory safety features, which help prevent vulnerabilities such as out-of-bounds reads, writes, and use-after-free errors—common attack vectors in C and C++ applications. Microsoft’s leadership has publicly advocated for the adoption of memory-safe languages to reduce technical debt and improve software security, aligning with broader industry and governmental calls for safer software development practices.


