DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Cpp2Rust: Automatic Translation of C++ to Safe Rust

Quality: 8/10 Relevance: 9/10

Summary

Cpp2Rust provides an automatic translation of C++ code to Rust using clang's AST, emitting Rust code and integrating a runtime library to handle C pointer semantics. It offers a fully safe Rust output by default, with an optional unsafe mode for debugging and performance comparisons, and includes guidance for translating single files or entire directories, plus a minimal example and a reference to a PLDI 2026 paper.

🚀 Service construit par Johan Denoyer