Skip to content

v0.15.1

Choose a tag to compare

@github-actions github-actions released this 20 May 13:28
· 20 commits to main since this release
f2915a1

Setup Instructions

Add the following to your MODULE.bazel file to install rules_zig:

bazel_dep(name = "rules_zig", version = "0.15.1")

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.16.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.

What's Changed

  • fix: wire ZLS build config to Zig exec group by @cerisier in #659

Full Changelog: v0.15.0...v0.15.1