Skip to content

Restore crate_universe/extension.bzl shim with a deprecation warning - #4114

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
rdesgroppes:restore-crate-universe-extension-bzl
Jun 27, 2026
Merged

Restore crate_universe/extension.bzl shim with a deprecation warning#4114
UebelAndre merged 1 commit into
bazelbuild:mainfrom
rdesgroppes:restore-crate-universe-extension-bzl

Conversation

@rdesgroppes

@rdesgroppes rdesgroppes commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

#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.:

Closes #4111.

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
rdesgroppes force-pushed the restore-crate-universe-extension-bzl branch from 766aafe to 94d9375 Compare June 27, 2026 00:12
@rdesgroppes
rdesgroppes marked this pull request as ready for review June 27, 2026 00:13

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me! Thank you for putting up this pull request! I'll get a release out ASAP.

@UebelAndre
UebelAndre enabled auto-merge June 27, 2026 17:37
@UebelAndre
UebelAndre added this pull request to the merge queue Jun 27, 2026
Merged via the queue into bazelbuild:main with commit ab2ba84 Jun 27, 2026
3 checks passed
@rdesgroppes
rdesgroppes deleted the restore-crate-universe-extension-bzl branch June 29, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crate_universe/extension.bzl removal breaks at least protobuf

2 participants