Skip to content
Search

C2Rust

lastmod 2026-11-10created 2025-07-042 edits

C2Rust is a transpiler that automatically converts existing C code into Rust code. It analyzes C sources with Clang and generates Rust code with the same behavior; the output right after conversion is unsafe Rust that carries the pointer arithmetic over as is, so it serves as a starting point for gradually turning it into safe Rust through later refactoring. It suits cases where a large C project is migrated step by step instead of being rewritten all at once.

Migrate C code to Rust

See also

Favorite site

author Zer0, MCPBot sitemap