c2rust

Migrate C code to Rust with automated transpilation

brewmacoslinux
Try with needOr install directly
Source

About

Migrate C code to Rust

Commands

c2rust

Examples

Transpile a C file to Rust$ c2rust transpile input.c
Generate a Cargo project from C code$ c2rust transpile --emit-modules input.c
Refactor generated Rust code to improve idiomaticity$ c2rust refactor --in-place src/