# jameysharp/corrode

C to Rust translator

Repository: https://github.com/jameysharp/corrode
Canonical: https://ross.abutalabs.com/products/corrode
Language: Haskell
License: GPL-2.0
License Family: copyleft
Last push: 2019-03-10T01:48:47+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3772, "days_push": 2734, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2187, forks 117 (observed 2026-08-28T04:06:23.763964+00:00)

## What it is
Corrode is a Haskell-based command-line tool that automatically translates C source code into semantically equivalent Rust source. It partially automates migrating legacy C codebases to Rust, with the expectation that developers clean up the output to adopt idiomatic and safe Rust.

## Use cases
- translate a C source file to Rust
- migrate a legacy C codebase to Rust
- convert C project to Rust automatically
- semantics-preserving C to Rust conversion
- port old C libraries to Rust
- bootstrap Rust rewrite of C code

## When to choose
- you have a large legacy C codebase and want to jumpstart a Rust migration
- you want a starting point for manual Rust rewriting rather than a from-scratch port
- you need semantics-preserving translation you can review and refine

## When to avoid
- you expect fully automated, safe, idiomatic Rust output with no manual cleanup
- you need a maintained tool with recent releases or prebuilt binaries
- you want C++ translation rather than C

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: compiler, parser, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: windows, cli, cross-platform
- tags: c-to-rust, transpiler, code-migration, haskell, legacy-code, automation, linux, macos

## Member repositories
- jameysharp/corrode (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.763964+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:47:53.050824+00:00, confidence not recorded.
  - readme: https://github.com/jameysharp/corrode (fetched 2026-08-28T04:06:23.763964+00:00, sha d63cb9107f88)
- Data as of 2026-08-30T08:39:29.467469+00:00.
