c2rust

Install command:
brew install c2rust

Migrate C code to Rust

https://c2rust.com/

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/c2rust.json

Formula code: c2rust.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 0.22.1

Revision: 1

Patches:

https://raw.githubusercontent.com/immunant/c2rust/9199011134df8ba95a12b8703fe708a947f06c7f/nix-tinycbor-cmake.patch
https://github.com/immunant/c2rust/commit/50f5cb3cc6044591ddcb54aa343606c34c7edba8
https://github.com/Homebrew/homebrew-core/blob/main/Patches/c2rust/clang-22.patch

Depends on:

llvm 23.1.6 Next-gen compiler infrastructure

Depends on when building from source:

cmake 4.5.1 Cross-platform make
pkgconf 3.0.11 Package compiler and linker metadata toolkit
rust 1.100.0 Safe, concurrent, practical language
tinycbor 7.1 Concise Binary Object Representation (CBOR) Library

Binaries: c2rust, c2rust-transpile

Analytics:

30 days90 days365 days
Installs1434307
Installs (--HEAD)001
Installs on Request1434307
Installs on Request (--HEAD)001
Build Errors0