Crates / bindgen / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to bindgen
Short answerThe closest alternatives to bindgen on crates.io data are cbindgen (215K real downloads a day), libc (5M real downloads a day), linux-raw-sys (3.3M real downloads a day). Of the 8 we list, the most used is libc, and 7 shipped a release in the last year. bindgen itself gets 1,018,499 a day with 3,072 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs bindgen | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| cbindgen Established | 215,284 | 0.21x | 454 | 5mo | category External FFI bindings, category FFI, keyword "bindings", keyword "code-generation" | side by side |
| libc Foundational | 4,964,021 | 4.87x | 17,338 | 8d | category External FFI bindings, keyword "bindings", keyword "ffi" | side by side |
| linux-raw-sys Pulled in | 3,305,436 | 3.25x | 39 | 10mo | category External FFI bindings, keyword "ffi" | compare |
| winapi Widely used | 1,251,224 | 1.23x | 1,603 | 6.3y | category External FFI bindings, keyword "ffi" | compare |
| security-framework-sys Pulled in | 934,775 | 0.92x | 50 | 8mo | category External FFI bindings, keyword "ffi" | compare |
| pyo3-build-config Established | 835,359 | 0.82x | 156 | 10d | category FFI, keyword "ffi" | compare |
| pyo3 Widely used | 817,609 | 0.80x | 2,315 | 10d | category FFI, keyword "ffi" | side by side |
| pyo3-ffi Pulled in | 814,393 | 0.80x | 12 | 10d | category FFI, keyword "ffi" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with bindgen; 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 bindgen: 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 bindgen, 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: Established and steady. 215,284 real downloads a day.cbindgenRust crate. A tool for generating C bindings to Rust code. Real use: 215K downloads a day on quiet days; 454 crates depend on it.Read it next →Also worth your time