Decision Workspace
pkg-config vs cxx-build vs cc
Side-by-side comparison of Rust crates
69
pkg-config
growingv0.3.34
A library to run the pkg-config system tool at build time in order to be used in Cargo build scripts.
75
cxx-build
stablev1.0.204
C++ code generator for integrating `cxx` crate into a Cargo build.
74
cc
stablev1.7.0
A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code.
Core Metrics
| pkg-config | cxx-build | cc | |
|---|---|---|---|
| Health Score | 69 | 75 | 74 |
| Total Downloads | 817.7M | 75.7M | 1.3B |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 13.4K | 3.2K | 46.0K |
| Releases | 47 | 236 | 227 |
| Last Updated | 57d ago | today | today |
| Age | 11y 11m | 6y 5m | 11y 10m |
Health Breakdown
pkg-config
Maintenance
15
Quality
16
Community
15
Popularity
8
Documentation
15
cxx-build
Maintenance
19
Quality
19
Community
14
Popularity
8
Documentation
15
cc
Maintenance
19
Quality
19
Community
13
Popularity
8
Documentation
15
Technical Details
| pkg-config | cxx-build | cc | |
|---|---|---|---|
| Version | 0.3.34 | 1.0.204 | 1.7.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 10 | 5 |
| Crate Size | 21KB | 100KB | 124KB |
| Features | 0 | 1 | 2 |
| Yanked % | 0.0% | 0.0% | 0.9% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.63 | 1.88 | 1.65.0 |
| Owners | 3 | 1 | 1 |
Links
Quick Verdict
- •cxx-build leads with a health score of 75/100, but none of the options score above 80.
- •cc has the most downloads (1.3B), suggesting wider adoption.
- •cc is depended on by 46.0K crates — strongest ecosystem trust.
- •pkg-config is pre-1.0 — API may change.