Restore crate_universe/extension.bzl shim with a deprecation warning - #4114
Merged
UebelAndre merged 1 commit intoJun 27, 2026
Merged
Conversation
bazelbuild#4005 removed `crate_universe/extension.bzl`, the deprecated re-export of `crate_universe/extensions.bzl`, as part of dropping WORKSPACE support. Downstream projects may still load `crate` from that path via `use_extension`, so any build that resolves `rules_rust` 0.71.0 with such a module in its graph fails. `protobuf` 35.1, the newest release on BCR, is one such module. Restore the shim and print a deprecation warning at load time, giving downstream modules a short window to migrate to `extensions.bzl`, e.g.: - protocolbuffers/protobuf#28226. Closes bazelbuild#4111.
rdesgroppes
force-pushed
the
restore-crate-universe-extension-bzl
branch
from
June 27, 2026 00:12
766aafe to
94d9375
Compare
rdesgroppes
marked this pull request as ready for review
June 27, 2026 00:13
UebelAndre
approved these changes
Jun 27, 2026
UebelAndre
left a comment
Collaborator
There was a problem hiding this comment.
Sounds good to me! Thank you for putting up this pull request! I'll get a release out ASAP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#4005 removed
crate_universe/extension.bzl, the deprecated re-export ofcrate_universe/extensions.bzl, as part of dropping WORKSPACE support.Downstream projects may still load
cratefrom that path viause_extension, so any build that resolvesrules_rust0.71.0 with such a module in its graph fails.protobuf35.1, the newest release on BCR, is one such module.Restore the shim and print a deprecation warning at load time, giving downstream modules a short window to migrate to
extensions.bzl, e.g.:crate_universeextension fromextensions.bzlprotocolbuffers/protobuf#28226.Closes #4111.