immunant/c2rust
Migrate C code to Rust observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 99
- Release rhythm 46
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 120
- age_days: 3058
- days_rel: 203
- days_push: 8
- n_releases_24m: 4
Adoption not part of the score
4794 stars · 312 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
C2Rust is a transpiler that converts C99-compliant C code into semantically equivalent but unsafe, unidiomatic Rust code, preserving functionality so existing test suites continue to pass. It includes additional tooling for refactoring, LLM-assisted postprocessing, and cross-checking translated code against the original as part of a longer migration workflow.
Use cases
- translate a C99 codebase to Rust
- migrate legacy C projects to Rust for memory safety
- convert C modules into compilable Rust source files
- cross-check translated Rust against original C behavior
- bootstrap a C-to-Rust migration before manual or LLM-driven cleanup
When to choose
- you need an automated first step for migrating C99 code to Rust
- you want to preserve functionality and keep existing tests passing during translation
- you need tooling to refactor or postprocess generated unsafe Rust
When to avoid
- you expect safe, idiomatic Rust output without further work
- your C code relies on non-C99 extensions or platform-specific behavior
- you need a fully automated one-click conversion with no manual follow-up
Facets
cli-tool · maturity active
compiler parser developer-tools security developer-tools programming-languages security cli rust transpiler c-to-rust memory-safety code-migration c99 refactoring cross-checking automation linux macos
3 sources
- readme: https://github.com/immunant/c2rust · fetched 2026-08-28 · 9cb82d185010
- homepage: https://c2rust.com/ · fetched 2026-08-29 · b52292f12e3f
- registry_crates: https://crates.io/api/v1/crates/c2rust · fetched 2026-08-29 · 406de22a10d9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| immunant/c2rust | main | 81 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem