Skip to content

v0.7.3

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Feb 23:20

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

bazel_dep(name = "rules_d", version = "0.7.3")

d = use_extension("//d:extensions.bzl", "d")
d.toolchain(d_version = "dmd-2.112.0")
use_repo(d, "d_toolchains")

register_toolchains("@d_toolchains//:all")

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_d",
    sha256 = "802f0c4e6ff96c0ffa031e9fccc24171165c2aeee66db3de2c6f958ea939ff7a",
    strip_prefix = "rules_d-0.7.3",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.7.3/rules_d-v0.7.3.tar.gz",
)

######################
# rules_d setup #
######################
# Fetches the rules_d 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_d//d:repositories.bzl", "d_register_toolchains", "rules_d_dependencies")

rules_d_dependencies()

d_register_toolchains(
    "dmd_toolchain",
    d_version = "dmd-2.112.0",
)

d_register_toolchains(
    "ldc_toolchain",
    d_version = "ldc-1.41.0",
)

What's Changed

  • fix: use tagged github actions for bcr release by @dcarp in #178

Full Changelog: v0.7.2...v0.7.3