Automic VaultAutomic Vault

brew

Install cargo-zigbuild with Homebrew, apk, Nix, pacman

Compile Cargo project with zig as linker. Version 0.23.0 via Homebrew; verified 2026-06-18.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cargo-zigbuild

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add cargo-zigbuild

Alpine Linux edge package indexes · cargo-zigbuild · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#cargo-zigbuild

nixpkgs package indexes · pkgs/by-name/ca/cargo-zigbuild/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S cargo-zigbuild

Arch Linux sync databases · cargo-zigbuild · source: geo.mirror.pkgbuild.com

overview

Package summary

Compile Cargo project with zig as linker

Commands and aliases

  • cargo-zigbuild

history

Project history and usage

cargo-zigbuild is a Cargo subcommand that compiles Rust projects using Zig as the linker to simplify cross compilation.

Project history

The official README describes cargo-zigbuild as using Zig as linker for easier Rust cross compilation, with cargo, pip, and container installation paths.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2022: GitHub repository created and first crates.io release recorded.
  • 2026: crates.io records max_version 0.23.0.

Related projects

  • The README links Zig, ziglang's PyPI package, Docker images, rustup targets, bindgen, and upstream Zig cross-compilation issues.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cargo-zigbuildcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.23.0
manager updated2026-06-18
local dataok
upstreamcurrent
latest detectedv0.23.0

https://github.com/rust-cross/cargo-zigbuild

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cargo-zigbuild
Version0.23.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cargo-zigbuild
Homepagehttps://github.com/rust-cross/cargo-zigbuild
Repositoryhttps://github.com/rust-cross/cargo-zigbuild
Upstream docshttps://docs.rs/cargo-zigbuild
LicenseMIT
Source archivehttps://github.com/rust-cross/cargo-zigbuild/archive/refs/tags/v0.23.0.tar.gz
Last updated2026-06-18T10:45:13Z
Pulseupdated
Dependencieszig
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-zigbuild
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

cargo-zigbuild

nix profile install nixpkgs#cargo-zigbuild
  • normalized package name match
  • Matched by: Cargo Zigbuild
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-zigbuild/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

cargo-zigbuild 0.22.3-r0

Compile Cargo project with zig as linker

https://github.com/rust-cross/cargo-zigbuild

sudo apk add cargo-zigbuild
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-zigbuild
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Cargo Zigbuild
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-zigbuild from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cargo-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-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-zigbuild
  • normalized package name match
  • Matched by: Cargo Zigbuild
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-zigbuild-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

cargo-zigbuild 0.22.3-1

Compile Cargo project with zig as linker

https://github.com/rust-cross/cargo-zigbuild

sudo pacman -S cargo-zigbuild
  • License: MIT
  • Architecture: x86_64
  • 4 dependencies
  • normalized package name match
  • Matched by: Cargo Zigbuild
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-zigbuild from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment