Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, pacman 安装 cbindgen

查看 cbindgen 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cbindgen

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cbindgen

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cbindgen

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

Debian apt已验证 · 92%
sudo apt install cbindgen

Debian stable package indexes · cbindgen · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install cbindgen

Fedora Rawhide package metadata · cbindgen · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S cbindgen

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

概览

软件包摘要

Project for generating C bindings from Rust code

命令和别名

  • cbindgen

历史

项目历史与用法

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cbindgencli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.29.4
管理器更新时间2026-06-11
本地数据OK
上游当前
检测到的最新版本v0.29.4

https://github.com/mozilla/cbindgen

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cbindgen
版本0.29.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cbindgen
主页https://github.com/mozilla/cbindgen
仓库https://github.com/mozilla/cbindgen
上游文档https://docs.rs/cbindgen
许可证MPL-2.0
源码归档https://github.com/mozilla/cbindgen/archive/refs/tags/v0.29.4.tar.gz
最后更新2026-06-11T00:06:46Z
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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