rust-lang/rust-bindgen
Some data may be outdated — see provenance labels.
Automatically generates Rust FFI bindings to C (and some C++) libraries. observed · 2026-09-27
Health v2 · maintenance only
73/100
- Activity 96
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 84
- age_days: 3772
- days_rel: 415
- days_push: 26
- n_releases_24m: 4
Adoption not part of the score
5294 stars · 831 forks observed · 2026-09-27
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
bindgen is a Rust tool that automatically generates Rust FFI bindings to C (and some C++) libraries by parsing header files with libclang. It is available both as a CLI executable and as a library crate for build scripts.
Use cases
- generate Rust bindings for a C library
- call C functions from Rust
- wrap a C++ library for use in Rust
- convert C header files to Rust declarations
- set up FFI for a native dependency in a Cargo build
When to choose
- you need to call a C or C library from Rust without hand-writing extern declarations
- you want bindings kept in sync with upstream C headers
- you are building a -sys crate for a native library
When to avoid
- the C++ library uses complex templates or advanced features bindgen cannot translate
- you need bindings for languages other than C/C++
- you want a hand-tuned, idiomatic safe Rust API rather than raw FFI declarations
Facets
cli-tool · maturity active
parser developer-tools cli developer-tools programming-languages parsers rust cross-platform cli ffi bindings c-interop cpp-interop libclang rust codegen
2 sources
- readme: https://github.com/rust-lang/rust-bindgen · fetched 2026-09-27 · f04c7d81be22
- homepage: https://rust-lang.github.io/rust-bindgen/ · fetched 2026-08-29 · 57c94154e271
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/rust-bindgen | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="rust-lang/rust-bindgen")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem