corrosion-rs/corrosion
Marrying Rust and CMake - Easy Rust and C/C++ Integration! observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 82
- Release rhythm 54
- Longevity 100
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: 85.5
- age_days: 3101
- days_rel: 228
- days_push: 109
- n_releases_24m: 5
Adoption not part of the score
1484 stars · 148 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Corrosion is a tool for integrating Rust into existing CMake projects, automatically importing Rust executables, static libraries, and dynamic libraries as CMake targets. It simplifies linking Rust and C/C++ code in a single build, including cross-compilation scenarios.
Use cases
- build a C++ project that links a Rust library
- integrate Rust crates into an existing CMake build system
- import Rust executables and libraries as CMake targets
- cross-compile a mixed Rust and C/C++ codebase
- link C/C++ libraries into a Rust executable built with CMake
- replace manual cargo invocations in CMake builds
When to choose
- you have an existing CMake project and want to add Rust components
- you need Rust and C/C++ code built together with one build system
- you want simple cross-compilation of mixed Rust/C++ projects
When to avoid
- your project is pure Rust and can use Cargo directly
- your build system is not CMake (e.g. Bazel, Meson, Make)
- you only need to call Rust tools from scripts rather than integrate builds
Facets
cli-tool · maturity active
build-tool developer-tools developer-tools cross-platform programming-languages cross-platform cpp rust cmake cargo rust-cpp-integration cross-compilation ffi build-tool
2 sources
- readme: https://github.com/corrosion-rs/corrosion · fetched 2026-08-28 · 1bb72a8f5a81
- homepage: https://corrosion-rs.github.io/corrosion/ · fetched 2026-08-29 · 175fd21240ea
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| corrosion-rs/corrosion | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="corrosion-rs/corrosion")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem