Skip to content

Commit

Permalink
Mark rust module extension as reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisier committed Oct 21, 2024
1 parent 1134392 commit d7b80c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rust/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def _rust_impl(module_ctx):
register_toolchains = False,
)

if bazel_features.external_deps.extension_metadata_has_reproducible:
return mctx.extension_metadata(reproducible = True)

return mctx.extension_metadata()

_COMMON_TAG_KWARGS = dict(
allocator_library = attr.string(
doc = "Target that provides allocator functions when rust_library targets are embedded in a cc_binary.",
Expand Down

0 comments on commit d7b80c3

Please sign in to comment.