macOS
brew install cbindgenlocal Homebrew formula metadata
sudo port install cbindgenMacPorts ports tree · devel/cbindgen/Portfile · source: api.github.com
brew
Project for generating C bindings from Rust code. Version 0.29.4 via Homebrew; verified 2026-06-11.
install
brew install cbindgenlocal Homebrew formula metadata
sudo port install cbindgenMacPorts ports tree · devel/cbindgen/Portfile · source: api.github.com
sudo apk add cbindgenAlpine Linux edge package indexes · cbindgen · source: dl-cdn.alpinelinux.org
sudo apt install cbindgenDebian stable package indexes · cbindgen · source: deb.debian.org
sudo dnf install cbindgenFedora Rawhide package metadata · cbindgen · source: dl.fedoraproject.org
sudo pacman -S cbindgenArch Linux sync databases · cbindgen · source: geo.mirror.pkgbuild.com
overview
Project for generating C bindings from Rust code
history
cbindgen is a Mozilla-hosted Rust developer tool that generates C, C++11, and Cython headers for Rust crates exposing a public C API.
The public Mozilla repository was created in 2017. The official user guide says cbindgen developed largely ad hoc as maintainers added features for their own use cases, with attention to matching Rust's actual layout and ABI guarantees.
The README lists production users and examples including WebRender, Stylo, maturin, tquic, and metatensor. The supplied package facts show broad packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, and MacPorts.
cbindgen can be run as a standalone CLI or called from a Rust `build.rs`. The quick start requires a Rust crate with a public C API and a `cbindgen.toml` configuration, then emits headers with commands such as `cbindgen --config cbindgen.toml --crate my_rust_library --output my_header.h`.
cbindgen sits at a practical packaging boundary: it lets Rust libraries ship C-family headers generated from the Rust source of truth. That makes it important for distributions carrying mixed Rust/C/C++ stacks, especially projects that expose stable FFI surfaces.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.
cbindgen.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cbindgen | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/mozilla/cbindgen
install metadata
| Package key | brew:cbindgen |
|---|---|
| Version | 0.29.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cbindgen |
| Homepage | https://github.com/mozilla/cbindgen |
| Repository | https://github.com/mozilla/cbindgen |
| Upstream docs | https://docs.rs/cbindgen |
| License | MPL-2.0 |
| Source archive | https://github.com/mozilla/cbindgen/archive/refs/tags/v0.29.4.tar.gz |
| Last updated | 2026-06-11T00:06:46Z |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cbindgen |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cbindgen 0.27.0-1+b4
Generates C bindings from Rust code
sudo apt install cbindgencbindgen 0.26.0-3
Generates C bindings from Rust code
sudo apt install cbindgencbindgen 0.29.1-r0
Tool to generate C bindings from Rust code
https://github.com/mozilla/cbindgen
sudo apk add cbindgencbindgen 0.29.3-1.fc45
Tool for generating C bindings to Rust code
https://crates.io/crates/cbindgen
sudo dnf install cbindgencbindgen 0.29.4-1
A tool for generating C bindings to Rust code
https://github.com/mozilla/cbindgen
sudo pacman -S cbindgencbindgen
sudo port install cbindgensource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.