Skip to content

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 20 May 12:31
· 22 commits to main since this release
1ee476f

Setup Instructions

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

bazel_dep(name = "rules_zig", version = "0.15.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.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.

Highlights

  • ZLS support, see #653
  • Support for bootstrapping Zig from source, see #651

Breaking Changes

  • The Zig toolchain and provider API changed, see #651

What's Changed

  • chore: reuse escape_label for bazel builtin names by @cerisier in #640
  • chore(deps): update dependency platforms to v1.1.0 by @renovate[bot] in #641
  • chore(deps): update dependency bazel_features to v1.47.0 by @renovate[bot] in #642
  • chore(deps): update dependency gazelle to v0.51.0 by @renovate[bot] in #648
  • feat: support standalone translate-c by @cerisier in #645
  • feat: implement test-obj for use_cc_common_link in zig 0.16 by @cerisier in #647
  • chore(deps): update dependency apple_support to v2.5.4 by @renovate[bot] in #649
  • fix: external translate-c does not need a zig toolchain by @cerisier in #650
  • chore(deps): update dependency rules_python to v2.0.1 by @renovate[bot] in #652
  • feat!: support toolchains building zig from source - host toolchain compatible by @cerisier in #651
  • chore(deps): update dependency bazel_features to v1.47.1 by @renovate[bot] in #655
  • feat: allow bootstrap settings in zig_configure by @cerisier in #654
  • feat: add zig exec group to all rules by @cerisier in #656
  • feat: allow adding extra attributes to generated toolchains by @cerisier in #657
  • feat: add zls toolchain support by @cerisier in #653
  • feat: globally register ZLS index and toolchains by @aherrmann in #658

Full Changelog: v0.14.0...v0.15.0