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.7.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 = "455c8181931b9227231f6f0ed4f83e9fee6606df349c1389673f2ec4d26ab72b",
strip_prefix = "rules_zig-0.7.0",
url = "https://github.com/aherrmann/rules_zig/releases/download/v0.7.0/rules_zig-0.7.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
- Support for Bazel version 8.
What's Changed
- chore(deps): update cgrindel/gha_join_jobs action to v1.4.0 by @renovate in #411
- chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to 3ad658c by @renovate in #413
- chore(deps): update dependency io_bazel_rules_go to v0.51.0 by @renovate in #415
- chore(deps): update dependency rules_bazel_integration_test to v0.29.0 by @renovate in #414
- chore(deps): update dependency rules_zig to v0.6.1 by @renovate in #416
- chore(deps): update dependency bazel to v8.0.0 by @renovate in #410
- chore(deps): update dependency stardoc to v0.7.2 by @renovate in #401
- chore(deps): update dependency rules_python to v0.40.0 by @renovate in #396
- chore(deps): update dependency rules_cc to v0.1.0 by @renovate in #389
- chore(deps): update dependency rules_python to v1 by @renovate in #409
- chore(deps): update dependency aspect_bazel_lib to v2.10.0 by @renovate in #412
Full Changelog: v0.6.1...v0.7.0