rust-cross/cargo-zigbuild
Compile Cargo project with zig as linker observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 1659
- days_rel: 9
- days_push: 7
- n_releases_24m: 24
Adoption not part of the score
2632 stars · 98 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
cargo-zigbuild is a Cargo subcommand that uses zig as the linker to make cross-compiling Rust projects easier. It supports building for many targets including macOS, Linux, and Windows from any host platform.
Use cases
- cross-compile a Rust binary for aarch64 Linux from x86_64
- build macOS binaries from a Linux CI machine
- avoid installing platform-specific C cross toolchains
- build Python extension modules for multiple platforms
- simplify Rust cross-compilation in Docker CI pipelines
When to choose
- you need to cross-compile Rust projects with C dependencies without manual toolchain setup
- you want to build for macOS from Linux or Windows
- you want a drop-in cargo build replacement for cross targets
When to avoid
- you only build for the host platform
- your project requires target-specific toolchains zig cannot provide
- you need MSVC-compatible Windows builds
Facets
cli-tool · maturity active
build-tool compiler developer-tools cli developer-tools cross-platform windows rust cli cross-compilation zig cargo-subcommand rust command-line linux macos docker
2 sources
- readme: https://github.com/rust-cross/cargo-zigbuild · fetched 2026-08-28 · 5e03e6543a99
- registry_crates: https://crates.io/api/v1/crates/cargo-zigbuild · fetched 2026-08-29 · af06f64cf6bc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-cross/cargo-zigbuild | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="rust-cross/cargo-zigbuild")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem