Description:
Compile Cargo project with zig as linker
|
|
Type: Formula
|
Latest Version: 0.20.1@0
|
Tracked Since: Dec 17, 2025
|
|
Links:
Homepage |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
rust
zig
cross-compilation
build-tools
linker
developer-tools
|
|
Install:
brew install cargo-zigbuild
|
About:
cargo-zigbuild is a Cargo subcommand that enables compiling Rust projects for Linux targets using Zig as the linker. It simplifies cross-compilation by automatically providing the necessary C toolchain and libraries, eliminating complex environment setups. This tool is particularly valuable for creating portable binaries that run across various Linux distributions without compatibility issues.
|
Key Features:
- Uses Zig as a linker for seamless cross-compilation
- Automatically handles C runtime linking for glibc and musl targets
- Supports building for multiple Linux architectures from a single environment
- Integrates directly with standard Cargo workflows as a subcommand
|
Use Cases:
- Cross-compiling Rust applications for different Linux distributions or architectures
- Building portable binaries with minimal dependencies on the host system
- Simplifying CI/CD pipelines for multi-platform Rust projects
|
Alternatives:
-
cross
– Uses Docker containers for cross-compilation, which can be heavier than zigbuild's Zig-based approach
-
cargo-xbuild
– Focuses on custom target specifications but requires manual toolchain setup
|
|
License: MIT
|
|
Dependencies: zig
|
|
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
|
| Detected |
Version |
Rev |
Change |
Commit |
| Sep 15, 2025 11:44am |
|
0 |
VERSION_BUMP |
b8db776d |
| Dec 16, 2024 1:52pm |
|
0 |
VERSION_BUMP |
11e02a00 |
| Oct 28, 2024 12:29pm |
|
0 |
VERSION_BUMP |
cd72c161 |
| Sep 18, 2024 4:55pm |
|
0 |
VERSION_BUMP |
15e17808 |
| Sep 18, 2024 3:26pm |
|
0 |
VERSION_BUMP |
e21fd5a5 |
| Sep 11, 2024 11:44am |
|
0 |
VERSION_BUMP |
1cd518a7 |
| Jul 21, 2024 1:11pm |
|
0 |
VERSION_BUMP |
7bfc0bd2 |
| Jul 19, 2024 6:51pm |
|
0 |
VERSION_BUMP |
6c71aca3 |
| Jan 26, 2024 12:14pm |
|
0 |
VERSION_BUMP |
e671a54d |
| Jan 26, 2024 11:55am |
|
0 |
VERSION_BUMP |
bea4dfb8 |
| Jan 14, 2024 9:29am |
|
0 |
VERSION_BUMP |
d8a5562a |
| Dec 3, 2023 9:25am |
|
0 |
VERSION_BUMP |
301abd0c |
| Nov 22, 2023 4:13pm |
|
0 |
VERSION_BUMP |
15b96473 |
| Oct 25, 2023 8:43am |
|
0 |
VERSION_BUMP |
6ebd4387 |
| Oct 4, 2023 7:09am |
|
0 |
VERSION_BUMP |
eadbdfef |
| Sep 12, 2023 8:27am |
|
0 |
VERSION_BUMP |
4b6d856c |
| Sep 10, 2023 9:26am |
|
0 |
VERSION_BUMP |
1054702a |
| Aug 18, 2023 9:52pm |
|
0 |
VERSION_BUMP |
b1c69c3a |
| Aug 18, 2023 6:12pm |
|
0 |
VERSION_BUMP |
029e6d4b |
|