macOS
brew install cbindgenlocal Homebrew formula metadata
sudo port install cbindgenMacPorts ports tree · devel/cbindgen/Portfile · 来源: api.github.com
安装
brew install cbindgenlocal Homebrew formula metadata
sudo port install cbindgenMacPorts ports tree · devel/cbindgen/Portfile · 来源: api.github.com
sudo apk add cbindgenAlpine Linux edge package indexes · cbindgen · 来源: dl-cdn.alpinelinux.org
sudo apt install cbindgenDebian stable package indexes · cbindgen · 来源: deb.debian.org
sudo dnf install cbindgenFedora Rawhide package metadata · cbindgen · 来源: dl.fedoraproject.org
sudo pacman -S cbindgenArch Linux sync databases · cbindgen · 来源: geo.mirror.pkgbuild.com
概览
Project for generating C bindings from Rust code
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cbindgen | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/mozilla/cbindgen
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 cbindgen来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.