This file guides automated contributors working in this repository.
cargo-zigbuildis a Rust CLI that builds Rust projects using Zig as the linker.- The main Rust sources live under
src/. - Docs and usage details are in
README.md.
- Install Rust (stable) via rustup.
- Install Zig (or the
ziglangPython package) if you need to runcargo zigbuild.
- Build:
cargo build - Integration tests (see
./.github/workflows/CI.yml):cargo run zigbuild --manifest-path tests/<fixture>/Cargo.toml --target <target> - Lint (if installed):
cargo clippy --all-targets --all-features - Format (if installed):
cargo fmt --all
- Keep changes focused and avoid unrelated formatting.
- Prefer updating
README.mdwhen user-facing behavior changes. - Add or update tests when fixing bugs or adding features.
- Some functionality depends on external tooling (Zig, SDKs). Call out any required environment setup in your change summary.