macOS
brew install cargo-clocal Homebrew formula metadata
sudo port install cargo-cMacPorts ports tree · devel/cargo-c/Portfile · ソース: api.github.com
brew
cargo-c のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install cargo-clocal Homebrew formula metadata
sudo port install cargo-cMacPorts ports tree · devel/cargo-c/Portfile · ソース: api.github.com
sudo apk add cargo-cAlpine Linux edge package indexes · cargo-c · ソース: dl-cdn.alpinelinux.org
sudo apt install cargo-cDebian stable package indexes · cargo-c · ソース: deb.debian.org
sudo dnf install cargo-cFedora Rawhide package metadata · cargo-c · ソース: dl.fedoraproject.org
nix profile install nixpkgs#cargo-cnixpkgs package indexes · pkgs/by-name/ca/cargo-c/package.nix · ソース: api.github.com
sudo pacman -S cargo-cArch Linux sync databases · cargo-c · ソース: geo.mirror.pkgbuild.com
sudo zypper install cargo-copenSUSE Tumbleweed package metadata · cargo-c · ソース: download.opensuse.org
概要
Helper program to build and install c-like libraries
履歴
cargo-c is a Cargo applet for building, testing, installing, and packaging Rust crates as C ABI-compatible libraries with headers, pkg-config files, static libraries, and dynamic libraries.
The lu-zero/cargo-c repository was created in May 2019 and cargo-c 0.1.0 was published to crates.io in June 2019 with cargo-cbuild and cargo-cinstall binaries. The project grew into a four-command suite: cargo-capi, cargo-cbuild, cargo-cinstall, and cargo-ctest.
The README describes cargo-c as a bridge between Cargo and traditional C library distribution. It uses Cargo.toml metadata under `package.metadata.capi` to configure headers, pkg-config files, generated or copied assets, library names, versioning, install paths, and target-specific behavior.
cargo-c integrates with cbindgen for header generation and pkg-config for consumer metadata. Its versioning scheme also tracks the embedded Cargo version in current releases, tying the tool's behavior to the Cargo implementation it vendors or embeds.
cargo-c is one of the more significant Rust packaging tools because it lets Rust libraries participate in long-established C and Unix packaging workflows. The README lists users including ebur128, gcode-rs, gst-plugins-rs, lewton, libdovi, libimagequant, librsvg, rav1e, rustls-ffi, sled, pathfinder, and udbserver.
Distribution adoption is broad for a Cargo plugin: the input records Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE packaging. Crates.io reports more than 960,000 downloads and over 90 published versions, reflecting an actively maintained compatibility layer rather than a one-shot helper.
Users install cargo-c from crates.io with `cargo install cargo-c`. `cargo cbuild` builds a library and produces a C header and pkg-config file, `cargo ctest` builds and runs tests, and `cargo cinstall` installs the generated library, header, and metadata into a destination prefix.
A typical project adds a C API module, a `capi` feature, and optional `package.metadata.capi` settings in Cargo.toml. cargo-c then produces artifacts that C and C-compatible build systems can consume through headers, shared or static libraries, and pkg-config.
cargo-c matters because it solves a packaging boundary that Rust itself deliberately does not hide: Rust crates are not automatically C libraries. By generating the Unix packaging pieces expected by downstream consumers, it lets Rust code enter ecosystems built around C headers, SONAMEs, pkg-config, and distro install prefixes.
For package maintainers, cargo-c is a practical adapter between language-package metadata and system-package policy. It is especially visible in multimedia and systems libraries where Rust implementations need to be consumed by C applications or by build systems such as Meson.
セキュリティ状態
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.
Cargo.toml実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
cargo-capi | cli | グローバル実行可能ファイル | |
cargo-cbuild | cli | グローバル実行可能ファイル | |
cargo-cinstall | cli | グローバル実行可能ファイル | |
cargo-ctest | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/lu-zero/cargo-c
インストールメタデータ
| パッケージキー | brew:cargo-c |
|---|---|
| バージョン | 0.10.23 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/cargo-c |
| ホームページ | https://github.com/lu-zero/cargo-c |
| リポジトリ | https://github.com/lu-zero/cargo-c |
| 上流ドキュメント | https://github.com/lu-zero/cargo-c#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/lu-zero/cargo-c/archive/refs/tags/v0.10.23.tar.gz |
| 最終更新 | 2026-06-22T14:02:57-07:00 |
| Pulse | updated |
| 依存関係 | libgit2, libssh2, openssl@3 |
| ビルド依存関係 | pkgconf, rust |
| macOS 提供ライブラリ | curl |
| 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 | cargo-c |
| 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 パッケージリンクとは分けて表示されます。
cargo-c 0.10.11-1+b2
Helper program to build and install c-like libraries
https://github.com/lu-zero/cargo-c
sudo apt install cargo-ccargo-c
nix profile install nixpkgs#cargo-ccargo-c 0.9.19-2build3
Helper program to build and install c-like libraries
sudo apt install cargo-ccargo-c 0.10.23-r0
cargo subcommand to build and install C-ABI compatibile dynamic and static libraries
https://github.com/lu-zero/cargo-c
sudo apk add cargo-ccargo-c-doc 0.10.23-r0
cargo subcommand to build and install C-ABI compatibile dynamic and static libraries (documentation)
https://github.com/lu-zero/cargo-c
sudo apk add cargo-c-doccargo-c 0.10.21-1.fc45
Helper program to build and install c-like libraries
https://crates.io/crates/cargo-c
sudo dnf install cargo-ccargo-c 0.10.23-1
A cargo subcommand to build and install C-ABI compatible dynamic and static libraries
https://github.com/lu-zero/cargo-c/
sudo pacman -S cargo-ccargo-c 0.10.15-2.2
Helper to build and install c-like libraries from Rust
https://crates.io/crates/cargo-c
sudo zypper install cargo-ccargo-c
sudo port install cargo-cソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.