Description
C2Rust is a tool for migrating C code to Rust. The project is developed by Galois and Immunant. Its demo lets you paste or upload C source and translate it into Rust in the browser, and the site says the tool can translate most C modules into semantically equivalent Rust code. The translated modules are intended to be compiled alongside existing code, so you can move a codebase piece by piece instead of rewriting it all at once. The demo shows a small insertion sort function converted into Rust, with a download option for the generated source. The site links a manual for the command-line version, a learn-more page, the project repository and its issue tracker. The project's license is linked from the repository.…
Highlights
- Translates C source into Rust
- Browser demo with upload and download
- Modules compile alongside existing code
- Command-line manual and repository
Ratings & Reviews
No ratings yet
Be the first to rate C2rust.
People also visit
C2rust FAQ
What does C2Rust do?
It translates C code into Rust source, aiming for semantically equivalent code.
Can I try it without installing?
Yes. The site has a demo where you upload or paste C code and download the Rust output.
Who develops it?
Galois and Immunant, according to the site.
Is it free?
The listing shows it as free, and the source is on GitHub.
What are the best C2rust alternatives?
Popular alternatives to C2rust include CXX QT, Conserve and Create Rust App. See all C2rust alternatives






