Using Bzlmod with Bazel >=6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_zig", version = "0.6.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_zig",
sha256 = "793ff4c3df5c4c96cf574007bd3e374978b8f589ce7f9425e1951453acb172c5",
strip_prefix = "rules_zig-0.6.0",
url = "https://github.com/aherrmann/rules_zig/releases/download/v0.6.0/rules_zig-0.6.0.tar.gz",
)
###################
# rules_zig setup #
###################
# Fetches the rules_zig dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_zig//zig:repositories.bzl", "rules_zig_dependencies", "zig_register_toolchains")
rules_zig_dependencies()
zig_register_toolchains(
name = "zig",
zig_versions = [
"0.13.0",
"0.12.1",
"0.12.0",
"0.11.0",
],
)
Highlights
- Minimum supported Bazel version raised to 7.1.0
What's Changed
- chore(deps): update dependency rules_python to v0.34.0 by @renovate in #343
- chore(deps): update dependency io_bazel_rules_go to v0.49.0 by @renovate in #344
- chore(deps): update dependency cgrindel_bazel_starlib to v0.21.0 by @renovate in #345
- chore: update Zig download URL by @github-actions in #347
- chore(deps): update dependency bazel_gazelle to v0.38.0 by @renovate in #348
- chore(deps): update dependency gazelle to v0.38.0 by @renovate in #349
- chore(deps): update dependency aspect_bazel_lib to v2.7.9 by @renovate in #346
- chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to 287d604 by @renovate in #350
- chore(deps): update dependency rules_python to v0.35.0 by @renovate in #352
- chore(deps): update dependency buildifier_prebuilt to v7 by @renovate in #353
- chore(deps): update dependency aspect_bazel_lib to v2.8.0 by @renovate in #351
- chore(deps): update dependency rules_python to v0.35.0 by @renovate in #354
- chore(deps): update dependency aspect_bazel_lib to v2.8.1 by @renovate in #355
- chore(deps): update dependency rules_bazel_integration_test to v0.25.0 by @renovate in #356
- chore(deps): update dependency rules_bazel_integration_test to v0.25.0 by @renovate in #357
- chore(deps): update dependency buildifier_prebuilt to v7.3.1 by @renovate in #358
- chore(deps): update dependency io_bazel_rules_go to v0.50.0 by @renovate in #359
- chore(deps): update dependency io_bazel_rules_go to v0.50.1 by @renovate in #360
- chore: update Zig HEAD version test by @aherrmann in #365
- chore(deps): update dependency io_bazel_stardoc to v0.7.1 by @renovate in #363
- chore(deps): update dependency rules_cc to v0.0.10 by @renovate in #361
- chore(deps): update dependency stardoc to v0.7.1 by @renovate in #364
- chore: configure BuildBuddy credentials by @aherrmann in #366
- chore(deps): update dependency aspect_bazel_lib to v2.9.0 by @renovate in #362
- chore: fix duplicated aspect_bazel_lib dependency by @aherrmann in #367
- chore(deps): update dependency bazel_gazelle to v0.39.0 by @renovate in #368
- chore(deps): update dependency gazelle to v0.39.0 by @renovate in #369
- chore(deps): update dependency rules_python to v0.36.0 by @renovate in #370
- chore(deps): update dependency rules_python to v0.36.0 by @renovate in #371
- chore(deps): update dependency aspect_bazel_lib to v2.9.1 by @renovate in #372
- chore(deps): update dependency bazel_gazelle to v0.39.1 by @renovate in #373
- chore(deps): update dependency gazelle to v0.39.1 by @renovate in #374
- chore: Bump minimal Bazel version to 7.1.0 by @aherrmann in #376
- chore(deps): update dependency rules_cc to v0.0.13 by @renovate in #375
- chore(deps): update dependency protobuf to v27.5 by @renovate in #377
- chore(deps): update dependency protobuf to v28 by @renovate in #378
- chore(deps): update dependency aspect_bazel_lib to v2.9.2 by @renovate in #379
- chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to 702567f by @renovate in #381
- chore(deps): update dependency aspect_bazel_lib to v2.9.3 by @renovate in #383
- chore: update Zig HEAD version test by @aherrmann in #385
- chore(deps): update dependency protobuf to v28.3 by @renovate in #384
- chore(deps): update dependency rules_bazel_integration_test to v0.26.0 by @renovate in #382
- chore(deps): update dependency rules_python to v0.37.2 by @renovate in #380
- chore: pass token secrets from release workflow by @aherrmann in #386
Full Changelog: v0.5.0...v0.6.0