macOS
brew install bindgenlocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für bindgen in AI-Agent-Workflows.
Installation
brew install bindgenlocal Homebrew formula metadata
sudo apt install bindgenDebian stable package indexes · bindgen · Quelle: deb.debian.org
sudo dnf install bindgen-cliFedora Rawhide package metadata · bindgen-cli · Quelle: dl.fedoraproject.org
Überblick
Automatically generates Rust FFI bindings to C (and some C++) libraries
Verlauf
bindgen is the Rust ecosystem's standard bridge from C and C++ header files to Rust FFI declarations. It uses Clang/libclang to understand native headers, then emits Rust declarations that let crates call C libraries without hand-maintaining large extern blocks.
The bindgen crate was first published to crates.io in November 2014, before the current rust-lang/rust-bindgen GitHub repository was created in June 2016. The project later became a Rust organization project and documents both a library API and a bindgen command-line tool.
The README describes bindgen as automatically generating Rust FFI bindings to C and some C++ libraries, and the user guide documents command-line use, libclang requirements, build-script integration, and allow/block-listing. The changelog and GitHub releases show a continuing 0.x release line, with 0.72.1 published in August 2025.
bindgen became infrastructure rather than just a utility: crates use it from build.rs scripts to follow system headers at build time, while package managers ship the standalone CLI for developers who want generated bindings on demand. The supplied package facts list Homebrew, Debian, Fedora, and Ubuntu packages, and crates.io reports hundreds of millions of crate downloads.
Typical use is to point bindgen at a wrapper header, pass any needed Clang include or target arguments, and either write the generated Rust to a file or integrate generation into a Cargo build script. The README also documents environment variables such as BINDGEN_EXTRA_CLANG_ARGS for end-user control without patching downstream crates.
bindgen matters to package people because it turns native ABI drift into a build-time concern. When a distribution updates libclang, libc headers, OpenSSL, LLVM, or another C dependency, Rust packages that rely on bindgen can regenerate declarations instead of shipping stale vendored bindings.
It is also a classic example of Rust's pragmatic systems story: memory-safe application code still has to meet decades of C APIs, and bindgen is the conveyor belt between those worlds. Its dependency on libclang makes it sensitive to compiler packaging, SDK paths, sysroots, cross-compilation flags, and reproducible-build environments.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
rustfmt.toml in the directory where bindgen is runExecutables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
bindgen | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/rust-lang/rust-bindgen
Installationsmetadaten
| Paketschlüssel | brew:bindgen |
|---|---|
| Version | 0.72.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/bindgen |
| Homepage | https://rust-lang.github.io/rust-bindgen/ |
| Repository | https://github.com/rust-lang/rust-bindgen |
| Upstream-Dokumentation | https://github.com/rust-lang/rust-bindgen#readme |
| Lizenz | BSD-3-Clause |
| Quellarchiv | https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.72.1.tar.gz |
| Build-Abhängigkeiten | rust |
| Von macOS bereitgestellte Bibliotheken | llvm |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bindgen |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
bindgen 0.71.1-6
Automatically generate Rust FFI bindings to C and C++ libraries
https://rust-lang.github.io/rust-bindgen/
sudo apt install bindgenbindgen 0.66.1-4
Automatically generate Rust FFI bindings to C and C++ libraries
https://rust-lang.github.io/rust-bindgen/
sudo apt install bindgenbindgen-cli 0.72.1-2.fc44
Automatically generates Rust FFI bindings to C and C++ libraries
https://crates.io/crates/bindgen-cli
sudo dnf install bindgen-cliQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.