RepoPilot

rust-lang/rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries.

Healthy

Healthy across all four use cases

HealthyDependency

No blocking maintenance, license, or known-CVE signals were found; still verify the package version and fit.

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

HealthyDeploy as-is

No blocking repository-level signals were found; deployment review is still required.

  • Last commit 1d ago
  • 46+ active contributors
  • Distributed ownership (top contributor 11% of recent commits)
  • BSD-3-Clause licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: rust-lang/rust-bindgen

Generated by RepoPilot · document generated 2026-09-16 · concise human review Evidence snapshot · analyzed 2026-09-16T13:23:58.209Z · commit 0dde4912611e

Verdict

Healthy — Healthy across all four use cases

  • Last commit 1d ago
  • 46+ active contributors
  • Distributed ownership (top contributor 11% of recent commits)
  • BSD-3-Clause licensed
  • 2 more receipts on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard

What it is

rust-bindgen automatically generates Rust Foreign Function Interface (FFI) bindings to C and C++ libraries by parsing header files with libclang. Given a C header file, it produces safe, idiomatic Rust code that can directly call C functions and use C types—eliminating the need for manual binding boilerplate. Monorepo (Cargo workspace) with four crates: bindgen/ (core library parsing and codegen), bindgen-cli/ (command-line tool), bindgen-tests/ (test suite with quickcheck integration), and bindgen-integration/ (C/C++ integration tests). Core logic lives in bindgen/ir/ (intermediate representation), bindgen/codegen/ (code generation), and bindgen/callbacks.rs for customization hooks.

Start here

Read these in order:

  • bindgen/codegen/dyngen.rs — Foundation: doesn't import anything internally and is imported by 1 other file. Read first to learn the vocabulary.
  • bindgen/codegen/helpers.rs — Foundation: imported by 1, no internal dependencies of its own.
  • bindgen/codegen/postprocessing/mod.rs — Built on the foundation; imported by 1 downstream file.
  • bindgen/options/mod.rs — Built on the foundation; imported by 1 downstream file.
  • bindgen/codegen/mod.rs — Layer 2 — application-level code that wires the lower layers together.

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

Clone: git clone https://github.com/rust-lang/rust-bindgen.git && cd rust-bindgen. Build: cargo build --release (requires Rust 1.71.0+). Run tests: cargo test --workspace. Requires libclang to be installed on the…

Daily commands:

No single 'dev server' (this is a compile-time tool). To generate bindings: bindgen path/to/header.h > bindings.rs (after cargo install --path bindgen-cli). For development: cargo build -p bindgen compiles the lib…

…shortened for this brief.

Key cautions & unknowns

  • libclang must be findable via clang-sys; use LIBCLANG_PATH to override if needed. Environment variable BINDGEN_EXTRA_CLANG_ARGS or BINDGEN_EXTRA_CLANG_ARGS_<TARGET> can affect code generation silently. C++ support is…
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Healthy" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Healthy
[![RepoPilot: Healthy](https://repopilot.app/api/badge/rust-lang/rust-bindgen)](https://repopilot.app/r/rust-lang/rust-bindgen)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/rust-lang/rust-bindgen on X, Slack, or LinkedIn.

Ask AI about rust-lang/rust-bindgen

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/rust-lang/rust-bindgen"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>