Repository navigation
Setup Instructions
Add the following to your MODULE.bazel file to install rules_zig:
bazel_dep(name = "rules_zig", version = "0.17.0")Optionally add the following to your MODULE.bazel file to install a specific Zig toolchain version:
zig = use_extension("@rules_zig//zig:extensions.bzl", "zig")
zig.toolchain(zig_version = "0.17.0")You can call zig.toolchain multiple times to install multiple Zig versions.
Optionally add the following to your MODULE.bazel file to install a specific ZLS toolchain version and declare what Zig version it applies to:
zls = use_extension("@rules_zig//zig/zls:extensions.bzl", "zls")
zls.toolchain(zig_version = "0.16.0", zls_version = "0.16.0")You can call zls.toolchain multiple times to install multiple ZLS versions.
Note, rules_zig requires bzlmod, WORKSPACE mode is no longer supported.
Highlights
- Update to support Zig 0.17.0
- Note,
@cImportwas removed with Zig 0.17.0, import the generatedcmodule instead.
- Note,
What's Changed
- chore: disable BCR draft PR by @aherrmann in #668
- chore: update pre-commit configuration by @aherrmann in #670
- feat: add import_names attribute for per target dependency name override by @aherrmann in #671
- fix: set ZIG_LIB_DIR before spawning zls by @cerisier in #672
- fix: scope C dependency include paths to their module by @aherrmann in #673
- fix(zig_toolchain): avoid depending on coreutils touch in version validation by @nicdumz in #674
- feat: add dSYM outputs to C++-linked Zig targets by @cerisier in #675
- fix: do not require Zig update to write into .github by @aherrmann in #677
- feat: update Zig versions up to 0.17.0 by @github-actions[bot] in #676
New Contributors
Full Changelog: v0.16.0...v0.17.0