Automic VaultAutomic Vault

brew

cargo-c を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

cargo-c のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install cargo-c

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install cargo-c

MacPorts ports tree · devel/cargo-c/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add cargo-c

Alpine Linux edge package indexes · cargo-c · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install cargo-c

Debian stable package indexes · cargo-c · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install cargo-c

Fedora Rawhide package metadata · cargo-c · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#cargo-c

nixpkgs package indexes · pkgs/by-name/ca/cargo-c/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S cargo-c

Arch Linux sync databases · cargo-c · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install cargo-c

openSUSE Tumbleweed package metadata · cargo-c · ソース: download.opensuse.org

概要

パッケージ概要

Helper program to build and install c-like libraries

コマンドとエイリアス

  • cargo-capi
  • cargo-cbuild
  • cargo-cinstall
  • cargo-ctest

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2019-05-23: GitHub repository lu-zero/cargo-c was created.
  • 2019-06-26: cargo-c 0.1.0 was published on crates.io with cargo-cbuild and cargo-cinstall.
  • 2019-2021: The command set expanded to include cargo-capi and cargo-ctest.
  • 2020s: README documented real users including gst-plugins-rs, librsvg, rav1e, rustls-ffi, and libimagequant.
  • 2026-06-01: Version 0.10.23+cargo-0.97.1 was published.

Related projects

  • cbindgen is used for C header generation.
  • pkg-config is the metadata format cargo-c emits for C consumers.
  • Projects listed by the README as users include gst-plugins-rs, librsvg, rav1e, rustls-ffi, libimagequant, lewton, and sled.

ソース

  • GitHub repository API metadata: https://api.github.com/repos/lu-zero/cargo-c
  • Official README: https://github.com/lu-zero/cargo-c#readme
  • Package-manager adoption from source_facts.package-manager.
  • crates.io API metadata and versions: https://crates.io/api/v1/crates/cargo-c

セキュリティ状態

リスクレベル: グリーン

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 個のプラットフォームターゲットで利用できます。
  • 3 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

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
Cargo.toml

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
cargo-capicliグローバル実行可能ファイル
cargo-cbuildcliグローバル実行可能ファイル
cargo-cinstallcliグローバル実行可能ファイル
cargo-ctestcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版0.10.23
マネージャ更新日2026-06-22
ローカルデータOK
上流最新
検出された最新v0.10.23

https://github.com/lu-zero/cargo-c

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキー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
Pulseupdated
依存関係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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-c
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

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-c
  • Section: rust
  • Architecture: amd64
  • Source Package: rust-cargo-c
  • 8 依存関係
  • normalized package name match
  • 一致条件: Cargo C
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cargo-c from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cargo-c

nix profile install nixpkgs#cargo-c
  • normalized package name match
  • 一致条件: Cargo C
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

cargo-c 0.9.19-2build3

Helper program to build and install c-like libraries

sudo apt install cargo-c
  • Section: universe/rust
  • Architecture: amd64
  • Source Package: rust-cargo-c
  • 7 依存関係
  • normalized package name match
  • 一致条件: Cargo C
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cargo-c from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cargo-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-c
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-c
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Cargo C
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-c from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cargo-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-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-c
  • normalized package name match
  • 一致条件: Cargo C
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

cargo-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-c
  • License: MIT AND AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MPL-2.0 AND MPL-2.0+ AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND (Apache-2.0 OR MIT)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-cargo-c
  • 11 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Cargo C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: cargo-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cargo-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-c
  • License: MIT
  • Architecture: x86_64
  • 13 依存関係
  • normalized package name match
  • 一致条件: Cargo C
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

cargo-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-c
  • License: MIT
  • Category: Development/Languages/Rust
  • Architecture: x86_64
  • Source Package: cargo-c
  • 7 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Cargo C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cargo-c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

cargo-c

sudo port install cargo-c
  • normalized package name match
  • 一致条件: Cargo C
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/cargo-c/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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