Automic VaultAutomic Vault

brew

Install cbindgen with Homebrew, apk, apt, dnf, MacPorts, pacman

Project for generating C bindings from Rust code. Version 0.29.4 via Homebrew; verified 2026-06-11.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cbindgen

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install cbindgen

MacPorts ports tree · devel/cbindgen/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add cbindgen

Alpine Linux edge package indexes · cbindgen · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install cbindgen

Debian stable package indexes · cbindgen · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install cbindgen

Fedora Rawhide package metadata · cbindgen · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S cbindgen

Arch Linux sync databases · cbindgen · source: geo.mirror.pkgbuild.com

overview

Package summary

Project for generating C bindings from Rust code

Commands and aliases

  • cbindgen

history

Project history and usage

cbindgen is a Mozilla-hosted Rust developer tool that generates C, C++11, and Cython headers for Rust crates exposing a public C API.

Project history

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.

Adoption history

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.

How it is used

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`.

Why package nerds care

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.

Timeline

  • 2017: Public GitHub repository created under Mozilla.
  • 2025: 0.28.0 and 0.29.0 releases published on GitHub.
  • 2026: 0.29.4 release published on GitHub.

Related projects

  • The README points to production or ecosystem users including WebRender, Stylo, maturin, tquic, and metatensor, and the API documentation is published on docs.rs.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
cbindgen.toml

executables

Installed executables

CommandKindExposureNote
cbindgencliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.29.4
manager updated2026-06-11
local dataok
upstreamcurrent
latest detectedv0.29.4

https://github.com/mozilla/cbindgen

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cbindgen
Version0.29.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cbindgen
Homepagehttps://github.com/mozilla/cbindgen
Repositoryhttps://github.com/mozilla/cbindgen
Upstream docshttps://docs.rs/cbindgen
LicenseMPL-2.0
Source archivehttps://github.com/mozilla/cbindgen/archive/refs/tags/v0.29.4.tar.gz
Last updated2026-06-11T00:06:46Z
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecbindgen
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

cbindgen 0.27.0-1+b4

Generates C bindings from Rust code

sudo apt install cbindgen
  • Section: utils
  • Architecture: amd64
  • Source Package: rust-cbindgen
  • 2 dependencies
  • normalized package name match
  • Matched by: Cbindgen
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cbindgen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

cbindgen 0.26.0-3

Generates C bindings from Rust code

sudo apt install cbindgen
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: rust-cbindgen
  • 2 dependencies
  • normalized package name match
  • Matched by: Cbindgen
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cbindgen from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cbindgen 0.29.1-r0

Tool to generate C bindings from Rust code

https://github.com/mozilla/cbindgen

sudo apk add cbindgen
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: cbindgen
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cbindgen
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cbindgen from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

cbindgen 0.29.3-1.fc45

Tool for generating C bindings to Rust code

https://crates.io/crates/cbindgen

sudo dnf install cbindgen
  • License: MPL-2.0 AND MIT AND Unicode-3.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-cbindgen
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cbindgen
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cbindgen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cbindgen 0.29.4-1

A tool for generating C bindings to Rust code

https://github.com/mozilla/cbindgen

sudo pacman -S cbindgen
  • License: MPL-2.0
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Cbindgen
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cbindgen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

cbindgen

sudo port install cbindgen
  • normalized package name match
  • Matched by: Cbindgen
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/cbindgen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment