Skip to content

Render crates into subpackages - #4093

Merged
UebelAndre merged 3 commits into
bazelbuild:mainfrom
UebelAndre:crate_universe_cleanup
Jun 25, 2026
Merged

Render crates into subpackages#4093
UebelAndre merged 3 commits into
bazelbuild:mainfrom
UebelAndre:crate_universe_cleanup

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

Currently crate_universe renders aliases into a single package for developers to consume. The issue with this design is that for projects with massive amounts of dependencies, Bazel parsing that BUILD file can be slow and have noticable impacts on analysis. This change updates crate_universe to render aliases into sub-packages instead of a root BUILD file in the repo hubs. In practice this means dependencies that were once accessed via @crate_index//:clap are now accessed via @crate_index//clap. Currently both root level aliases are still rendered but can be disabled via the new incompatible_no_root_alias_targets flag.

@UebelAndre UebelAndre changed the title Crate universe cleanup Render crates into subpackages Jun 18, 2026
@UebelAndre
UebelAndre requested a review from illicitonion June 18, 2026 18:43
@UebelAndre
UebelAndre marked this pull request as ready for review June 18, 2026 18:43
@UebelAndre

UebelAndre commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

For reviewers, this change should be reviewed commit-by-commit.

@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch 4 times, most recently from 0cd8255 to a39dd65 Compare June 18, 2026 19:02
@UebelAndre
UebelAndre marked this pull request as draft June 19, 2026 00:01
@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch 2 times, most recently from a800a19 to f0e7a3d Compare June 20, 2026 16:41
@UebelAndre

Copy link
Copy Markdown
Collaborator Author

This change is being stacked on top of #4094

@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch 5 times, most recently from f231924 to 349829e Compare June 24, 2026 01:27
@UebelAndre
UebelAndre marked this pull request as ready for review June 24, 2026 02:23
@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch from 349829e to 98217e0 Compare June 24, 2026 02:54
@UebelAndre

Copy link
Copy Markdown
Collaborator Author

These changes are now stacked on top of #4098

@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch from 98217e0 to 25152fd Compare June 24, 2026 03:01
@UebelAndre
UebelAndre force-pushed the crate_universe_cleanup branch from 25152fd to b6f1a88 Compare June 24, 2026 05:25
@UebelAndre
UebelAndre added this pull request to the merge queue Jun 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 25, 2026
@UebelAndre
UebelAndre added this pull request to the merge queue Jun 25, 2026
Merged via the queue into bazelbuild:main with commit 99ad03e Jun 25, 2026
3 checks passed
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.

2 participants