rules_d provides Bazel rules and toolchains for building D libraries,
binaries, tests, protocol buffers, and projects that depend on DUB packages.
With Bzlmod, add rules_d to your MODULE.bazel:
bazel_dep(name = "rules_d", version = "<version>")
Then configure a D toolchain:
d = use_extension("@rules_d//d:extensions.bzl", "d")
d.toolchain(d_version = "dmd-2.112.0")
use_repo(d, "d_toolchains")
register_toolchains("@d_toolchains//:all")
Use the latest published version from the Bazel Central Registry.
For legacy WORKSPACE projects, copy the snippet from the release notes for
the version you want to use.
To use a commit instead of a release, point http_archive at a GitHub source
archive such as https://github.com/bazel-contrib/rules_d/archive/<sha>.tar.gz,
set strip_prefix = "rules_d-<sha>", and update the checksum.
0.12.1 +13d2026-09-21 | |
0.12.0 +19d2026-09-08 | |
0.11.0 +2.8mo2026-08-20 | |
0.10.0 +10d2026-05-12 | |
0.9.0 +12d2026-05-02 | |
0.8.2 +15d2026-04-20 | |
0.8.1 +11d2026-04-04 | |
0.7.6 +9d2026-03-24 | |
0.7.5 +13d2026-03-14 | |
0.7.4 +6d2026-02-28 | |
0.7.3 +1.4mo2026-02-21 | |
0.6.0 +18d2026-01-11 | |
0.5.1 +10d2025-12-23 | |
0.4.1 +11d2025-12-13 | |
0.4.0 +1.3mo2025-12-02 | |
0.3.1 +11d2025-10-22 | |
0.3.0 +8d2025-10-10 | |
0.2.2 +1.2mo2025-10-02 | |
0.1.32025-08-26 |