macOS
brew install cargo-zigbuildlocal Homebrew formula metadata
brew
Compile Cargo project with zig as linker. Version 0.23.0 via Homebrew; verified 2026-06-18.
install
brew install cargo-zigbuildlocal Homebrew formula metadata
sudo apk add cargo-zigbuildAlpine Linux edge package indexes · cargo-zigbuild · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-zigbuildnixpkgs package indexes · pkgs/by-name/ca/cargo-zigbuild/package.nix · source: api.github.com
sudo pacman -S cargo-zigbuildArch Linux sync databases · cargo-zigbuild · source: geo.mirror.pkgbuild.com
overview
Compile Cargo project with zig as linker
history
cargo-zigbuild is a Cargo subcommand that compiles Rust projects using Zig as the linker to simplify cross compilation.
The official README describes cargo-zigbuild as using Zig as linker for easier Rust cross compilation, with cargo, pip, and container installation paths.
GitHub records the repository as created in February 2022, and crates.io records the first release the same day. The input package facts list Alpine, Homebrew, Nix, and Arch packages, and the README also advertises PyPI and Docker distribution.
The README documents installing Zig, adding Rust targets with rustup, running `cargo zigbuild --target ...`, setting environment variables for Zig/Python/cache paths, targeting glibc versions, and building macOS universal2 binaries.
cargo-zigbuild is significant for package builders because it packages a practical Rust cross-compilation workflow around Zig's linker and libc tooling, reducing the need for bespoke target toolchains.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-zigbuild | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/rust-cross/cargo-zigbuild
install metadata
| Package key | brew:cargo-zigbuild |
|---|---|
| Version | 0.23.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-zigbuild |
| Homepage | https://github.com/rust-cross/cargo-zigbuild |
| Repository | https://github.com/rust-cross/cargo-zigbuild |
| Upstream docs | https://docs.rs/cargo-zigbuild |
| License | MIT |
| Source archive | https://github.com/rust-cross/cargo-zigbuild/archive/refs/tags/v0.23.0.tar.gz |
| Last updated | 2026-06-18T10:45:13Z |
| Pulse | updated |
| Dependencies | zig |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-zigbuild |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-zigbuild
nix profile install nixpkgs#cargo-zigbuildcargo-zigbuild 0.22.3-r0
Compile Cargo project with zig as linker
https://github.com/rust-cross/cargo-zigbuild
sudo apk add cargo-zigbuildcargo-zigbuild-doc 0.22.3-r0
Compile Cargo project with zig as linker (documentation)
https://github.com/rust-cross/cargo-zigbuild
sudo apk add cargo-zigbuild-doccargo-zigbuild 0.22.3-1
Compile Cargo project with zig as linker
https://github.com/rust-cross/cargo-zigbuild
sudo pacman -S cargo-zigbuildsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.