macOS
brew install cargo-clocal Homebrew formula metadata
sudo port install cargo-cMacPorts ports tree · devel/cargo-c/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cargo-c pour les workflows d'agents IA.
installation
brew install cargo-clocal Homebrew formula metadata
sudo port install cargo-cMacPorts ports tree · devel/cargo-c/Portfile · Source: api.github.com
sudo apk add cargo-cAlpine Linux edge package indexes · cargo-c · Source: dl-cdn.alpinelinux.org
sudo apt install cargo-cDebian stable package indexes · cargo-c · Source: deb.debian.org
sudo dnf install cargo-cFedora Rawhide package metadata · cargo-c · Source: dl.fedoraproject.org
nix profile install nixpkgs#cargo-cnixpkgs package indexes · pkgs/by-name/ca/cargo-c/package.nix · Source: api.github.com
sudo pacman -S cargo-cArch Linux sync databases · cargo-c · Source: geo.mirror.pkgbuild.com
sudo zypper install cargo-copenSUSE Tumbleweed package metadata · cargo-c · Source: download.opensuse.org
aperçu
Helper program to build and install c-like libraries
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
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.tomlexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
cargo-capi | cli | exécutable global | |
cargo-cbuild | cli | exécutable global | |
cargo-cinstall | cli | exécutable global | |
cargo-ctest | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/lu-zero/cargo-c
métadonnées d'installation
| Clé du paquet | brew:cargo-c |
|---|---|
| Version | 0.10.23 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/cargo-c |
| Page d'accueil | https://github.com/lu-zero/cargo-c |
| Dépôt | https://github.com/lu-zero/cargo-c |
| Docs amont | https://github.com/lu-zero/cargo-c#readme |
| Licence | MIT |
| Archive source | https://github.com/lu-zero/cargo-c/archive/refs/tags/v0.10.23.tar.gz |
| Dernière mise à jour | 2026-06-22T14:02:57-07:00 |
| Pulse | updated |
| Dépendances | libgit2, libssh2, openssl@3 |
| Dépendances de compilation | pkgconf, rust |
| Bibliothèques fournies par macOS | curl |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-cpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.