Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 29 May 11:33
· 218 commits to main since this release
013336c

Using Bzlmod with Bazel >=6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_zig", version = "0.9.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 = "c4b91c7b85b5f55e90e43b52439b80a84fd630f660eafa1d512a0b9c1377ef84",
    strip_prefix = "rules_zig-0.9.0",
    url = "https://github.com/aherrmann/rules_zig/releases/download/v0.9.0/rules_zig-0.9.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.14.1",
        "0.14.0",
        "0.13.0",
        "0.12.1",
        "0.12.0",
        "0.11.0",
    ],
)

Highlights

  • Support for Zig version 0.14.1.
  • zig_library and zig_shared_library targets are now valid dependencies for C/C++ targets.

What's Changed

  • feat: support zig_shared_library as cc_* dependency by @aherrmann in #443
  • feat: Add compiler_runtime attribute to control -fcompiler-rt by @aherrmann in #444
  • feat: support zig_library as cc_* dependency by @aherrmann in #445
  • feat: expose Zig toolchain zig.h by @aherrmann in #446
  • ci: skip Zig docs pipeline by @aherrmann in #448
  • feat: support header generation (-femit-h) for Zig <=0.13.0 by @aherrmann in #447
  • chore(deps): update dependency rules_python to v1.3.0 by @renovate in #450
  • chore(deps): update dependency rules_multirun to v0.11.0 by @renovate in #449
  • chore(deps): update dependency buildifier_prebuilt to v8.0.3 by @renovate in #451
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.26.0 by @renovate in #452
  • chore(deps): update dependency bazel to v8.2.0 by @renovate in #453
  • chore(deps): update dependency bazel_gazelle to v0.43.0 by @renovate in #455
  • chore(deps): update dependency gazelle to v0.43.0 by @renovate in #456
  • chore(deps): update dependency io_bazel_rules_go to v0.54.0 by @renovate in #454
  • chore(deps): update dependency bazel to v8.2.1 by @renovate in #457
  • chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to 0c575cc by @renovate in #458
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.27.0 by @renovate in #461
  • chore(deps): update io_buildbuddy_buildbuddy_toolchain digest to 66146a3 by @renovate in #460
  • chore(deps): update dependency rules_bazel_integration_test to v0.32.1 by @renovate in #463
  • chore(deps): update dependency rules_multirun to v0.12.0 by @renovate in #462
  • chore(deps): update dependency rules_python to v1.4.0 by @renovate in #464
  • chore(deps): update dependency rules_shell to v0.4.1 by @renovate in #465
  • chore(deps): update dependency rules_python to v1.4.1 by @renovate in #466
  • chore(deps): update dependency aspect_bazel_lib to v2.17.0 by @renovate in #459
  • chore(deps): update dependency io_bazel_rules_go to v0.54.1 by @renovate in #467
  • chore(deps): update dependency platforms to v1 by @renovate in #470
  • chore: update Zig versions up to 0.14.1 by @github-actions in #469

Full Changelog: v0.8.0...v0.9.0