Skip to content

Commit d067471

Browse files
authored
Fix bzlmod support for bazel 6 (bazelbuild#2989)
I'm not going to bother adding a new test for this as Bazel 8 is just around the corner and Bazel 6 is about to be dropped.
1 parent 2257a60 commit d067471

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module(
44
name = "rules_rust",
5-
version = "0.54.0",
5+
version = "0.54.1",
66
)
77

88
bazel_dep(

rust/extensions.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def _rust_impl(module_ctx):
7171
register_toolchains = False,
7272
aliases = toolchain.aliases,
7373
)
74-
return module_ctx.extension_metadata(reproducible = True)
74+
metadata_kwargs = {}
75+
if bazel_features.external_deps.extension_metadata_has_reproducible:
76+
metadata_kwargs["reproducible"] = True
77+
return module_ctx.extension_metadata(**metadata_kwargs)
7578

7679
_COMMON_TAG_KWARGS = dict(
7780
allocator_library = attr.string(

version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""The version of rules_rust."""
22

3-
VERSION = "0.54.0"
3+
VERSION = "0.54.1"

0 commit comments

Comments
 (0)