c2rust
« Back to VersTracker
Description:
Migrate C code to Rust
Type: Formula  |  Latest Version: 0.21.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c-to-rust transpiler migration refactoring legacy-code
Install: brew install c2rust
About:
C2Rust is a tool that assists in migrating C codebases to Rust, focusing on interoperability and safety. It first generates idiomatic Rust code from C source files, then helps developers incrementally refactor the output to leverage Rust's memory safety guarantees. This tool is invaluable for modernizing legacy C projects while maintaining correctness.
Key Features:
  • Transpiles C code to Rust
  • Refactoring tools for memory safety
  • Supports large, existing codebases
  • Maintains interoperability with C libraries
Use Cases:
  • Migrating legacy C applications to Rust
  • Improving memory safety in existing C projects
  • Automating code translation for modernization
Alternatives:
  • bindgen – Generates Rust FFI bindings for C libraries, but does not transpile full codebases.
  • c2rust-refactor – A deprecated predecessor; C2Rust is the actively maintained successor.
License: BSD-3-Clause
Dependencies: llvm
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 8, 2025 7:57pm 0 VERSION_BUMP 78eb13cc
Dec 31, 2024 2:23pm 1 VERSION_BUMP 040546a3