cargo-zigbuild
brew install cargo-zigbuild
v0.23.0
MIT
Compile Cargo project with zig as linker
92
30-day installs · #3585
258
90-day · #3771
768
365-day · #4269
2.5k
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
cargo-subcommand
cross-compile
zig
Links
- https://github.com/rust-cross/cargo-zigbuild
- GitHub: rust-cross/cargo-zigbuild
- Brew formula source: Formula/c/cargo-zigbuild.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"zig"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Compile Cargo project with zig as linker",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:10+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-zigbuild",
"github_default_branch": "main",
"github_last_commit_at": "2026-06-18T06:55:12Z",
"github_readme_excerpt": "# cargo-zigbuild\n\n[](https://github.com/rust-cross/cargo-zigbuild/actions?query=workflow%3ACI)\n[](https://crates.io/crates/cargo-zigbuild)\n[](https://docs.rs/cargo-zigbuild/)\n[](https://pypi.org/project/cargo-zigbuild)\n[](https://hub.docker.com/r/messense/cargo-zigbuild/)\n\n\u003e \ud83d\ude80 Help me to become a full-time open-source developer by [sponsoring me on GitHub](https://github.com/sponsors/messense)\n\nCompile Cargo project with [zig](https://github.com/ziglang/zig) as [linker](https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html) for\n[easier cross compiling](https://actually.fyi/posts/zig-makes-rust-cross-compilation-just-work/).\n\n## Installation\n\n```bash\ncargo install --locked cargo-zigbuild\n```\n\nYou can also install it using pip which will also install [`ziglang`](https://pypi.org/project/ziglang/) automatically:\n\n```bash\npip install cargo-zigbuild\n```\n\nWe also provide Docker images which has macOS SDK pre-installed in addition to cargo-zigbuild and Rust, for example to build for x86_64 macOS:\n\n- Linux docker image ([ghcr.io](https://github.com/rust-cross/cargo-zigbuild/pkgs/container/cargo-zigbuild), [Docker Hub](https://hub.docker.com/r/messense/cargo-zigbuild)):\n```bash\ndocker run --rm -it -v $(pwd):/io -w /io ghcr.io/rust-cross/cargo-zigbuild \\\n cargo zigbuild --release --target x86_64-apple-darwin\n```\n\n[](https://repology.org/project/cargo-zigbuild/versions)\n\n## Usage\n\n1. Install [zig](https://ziglang.org/) following the [official documentation](https://ziglang.org/learn/getting-started/#installing-zig),\non mac",
"github_repo": "rust-cross/cargo-zigbuild",
"github_stars": 2541,
"github_topics": [
"cargo-subcommand",
"cross-compile",
"zig"
],
"homepage": "https://github.com/rust-cross/cargo-zigbuild",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 92,
"installs_365d": 768,
"installs_90d": 258,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cargo-zigbuild",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 3585,
"rank_365d": 4269,
"rank_90d": 3771,
"raw_hash": "24c25744b3da26d6",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-zigbuild.rb",
"tap": "homebrew/core",
"test_dependencies": [
"rustup"
],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.23.0",
"versioned_formulae": [],
"why_use_this": null
}