Ross ROSS = Recommend OSS · open-source software intelligence for agents

rust-lang/rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries. observed · 2026-08-28

github.com/rust-lang/rust-bindgen · homepage · Rust · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

76/100

  • Activity 98
  • Release rhythm 33
  • 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: 72.5
  • age_days: 3724
  • days_rel: 367
  • days_push: 12
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

5270 stars · 828 forks observed · 2026-08-28

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

Member repositories

RepositoryRoleHealth v2
rust-lang/rust-bindgenmain76

For agents

markdown · JSON · MCP: product_card(name="rust-lang/rust-bindgen")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem