Crates / pkg-config / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to pkg-config
Short answerThe closest alternatives to pkg-config on crates.io data are cc (3.9M real downloads a day), find-msvc-tools (2.9M real downloads a day), vcpkg (1.5M real downloads a day). Of the 4 we list, the most used is cc, and 3 shipped a release in the last year. pkg-config itself gets 2,394,417 a day with 1,241 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs pkg-config | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| cc Widely used | 3,852,250 | 1.61x | 4,294 | 1d | keyword "build-dependencies" | side by side |
| find-msvc-tools Pulled in | 2,852,929 | 1.19x | 15 | 5d | keyword "build-dependencies" | compare |
| vcpkg Established | 1,467,123 | 0.61x | 135 | 5.3y | keyword "build-dependencies" | compare |
| cmake Established | 1,250,794 | 0.52x | 968 | 7mo | keyword "build-dependencies" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with pkg-config; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For pkg-config: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with pkg-config, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Widely used and steady. 3,852,250 real downloads a day.ccRust crate. 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...Read it next →Also worth your time