Skip to content

Releases: bazel-contrib/rules_d

v0.10.1

26 May 18:01

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "dbfd4891cf09b3ce2a910a3cce8f0b0de9d05c70396c8e198231696ee70bc4f0",
    strip_prefix = "rules_d-0.10.1",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.10.1/rules_d-v0.10.1.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")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

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

  • ci: use prek-action instead of pre-commit by @dcarp in #205
  • chore: allow renovate to update MODULE.bazel by @dcarp in #206
  • fix: refactor build generator to use 'dub convert --format=json' by @dcarp in #209
  • ci: upgrade bazel-contrib/.github workflows to v7.6.0 by @dcarp in #210
  • chore(deps): update j178/prek-action action to v2.0.4 by @renovate[bot] in #211
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.16.2 by @renovate[bot] in #212
  • chore: enable renovate bazel lock file maintenance by @dcarp in #208
  • ci: allow renovate to update bazel lock by @dcarp in #213
  • ci: replace workflow conclusion action with native expressions by @dcarp in #214
  • revert: ci: allow renovate to update bazel lock by @dcarp in #215
  • chore(deps): update pre-commit hook crate-ci/typos to v1.46.3 by @renovate[bot] in #199

Full Changelog: v0.10.0...v0.10.1

v0.10.0

12 May 19:59

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "ca970d944acf7c42dedb0ea16a0c475866f1f67b062d8b839545e683db955d2a",
    strip_prefix = "rules_d-0.10.0",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.10.0/rules_d-v0.10.0.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")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

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: implement dub_lock_dependencies for dub.sdl and dub.json by @dcarp in #196
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.15.0 by @renovate[bot] in #197
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.15.1 by @renovate[bot] in #198
  • feat(dub): support multi-source lock generation by @dcarp in #200
  • fix(dub): handle manifest roots and archive prefixes by @dcarp in #201
  • chore(deps): upgrade protobuf to 32.1 by @dcarp in #202
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.16.0 by @renovate[bot] in #204
  • chore: use a bazel-contrib/.github workflow with enabled disk cache by @dcarp in #203

Full Changelog: v0.9.0...v0.10.0

v0.9.0

02 May 15:49

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "6293a98ef0f1212e120de88bcca69b4c26d059165dbf12791e19d60660bb91a9",
    strip_prefix = "rules_d-0.9.0",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.9.0/rules_d-v0.9.0.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", "protobuf_d_dependencies", "rules_d_dependencies")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

protobuf_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

  • chore(deps): update pre-commit hook crate-ci/typos to v1.46.0 by @renovate[bot] in #192
  • feat: add d_proto_library by @dcarp in #194
  • fix: fix windows build by @dcarp in #195

Full Changelog: v0.8.2...v0.9.0

v0.8.2

18 Apr 15:38

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "7672a050345172ceec80fe22f01f18e6a5dd83f336d0c149f7e53ea4cece8948",
    strip_prefix = "rules_d-0.8.2",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.8.2/rules_d-v0.8.2.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")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

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(docs): add dub documentation by @dcarp in #190
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.13.10 by @renovate[bot] in #191

Full Changelog: v0.8.1...v0.8.2

v0.8.1

04 Apr 17:28

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "a364df207645a939184f12114bf7f90efcf83cb5cf5c5e256517a7a826d74186",
    strip_prefix = "rules_d-0.8.1",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.8.1/rules_d-v0.8.1.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")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

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: Upgrade bcr image to debian13 by @dcarp in #189

Full Changelog: v0.8.0...v0.8.1

v0.8.0

04 Apr 15:31

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "d9b23a7b8a99f72fb0359cac0db844a8ef0e249b59187b6cddf4019d5d1648e5",
    strip_prefix = "rules_d-0.8.0",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.8.0/rules_d-v0.8.0.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")
load("@rules_d//dub:repositories.bzl", "d_register_dub_repository")

rules_d_dependencies()

d_register_dub_repository(
    dub_selections_lock = "//:dub.selections.lock.json",
)

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

  • chore(deps): update bazel-contrib/publish-to-bcr action to v1.2.0 by @renovate[bot] in #187
  • feat: implement DUB module extension and support for library packages by @dcarp in #181
  • chore(deps): update pre-commit hook crate-ci/typos to v1.45.0 by @renovate[bot] in #188

Full Changelog: v0.7.6...v0.8.0

v0.7.6

24 Mar 16:06

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "a355ce7d5bb38e86f592b50d0e96ce938e0f35339cace902eff02301b2380b65",
    strip_prefix = "rules_d-0.7.6",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.7.6/rules_d-v0.7.6.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: move disk cache directory to avoid overlapping with output_base by @dcarp in #183
  • chore: remove buildifier CI job by @dcarp in #184
  • chore(deps): update pre-commit hook keith/pre-commit-buildifier to v8.5.1 by @renovate[bot] in #185
  • chore(deps): lock file maintenance by @renovate[bot] in #186

Full Changelog: v0.7.5...v0.7.6

v0.7.5

14 Mar 15:27

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "68240b87df9ac06db8d8748e80184d7e20b1be17ab23181981d564e380494bbc",
    strip_prefix = "rules_d-0.7.5",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.7.5/rules_d-v0.7.5.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: filter empty dmd args and correct env expansion by @dcarp in #182

Full Changelog: v0.7.4...v0.7.5

v0.7.4

28 Feb 22:49

Choose a tag to compare

Using Bzlmod with Bazel 7 or greater

Add to your MODULE.bazel file:

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

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 = "5579a03398c0fcb602c86b306bdea7f5a6b80d742a9342784359610ffb781493",
    strip_prefix = "rules_d-0.7.4",
    url = "https://github.com/bazel-contrib/rules_d/releases/download/v0.7.4/rules_d-v0.7.4.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

  • chore: reenable precommit extension in renovate.config by @dcarp in #179
  • chore(deps): update pre-commit hook crate-ci/typos to v1.44.0 by @renovate[bot] in #167
  • chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.13.9 - autoclosed by @renovate[bot] in #168
  • fix: set toolchain for d action run by @dcarp in #180

Full Changelog: v0.7.3...v0.7.4

v0.7.3

21 Feb 23:20

Choose a tag to compare

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