Skip to content

Render crates into subpackages#4093

Draft
UebelAndre wants to merge 4 commits into
bazelbuild:mainfrom
UebelAndre:crate_universe_cleanup
Draft

Render crates into subpackages#4093
UebelAndre wants to merge 4 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 from a39dd65 to a800a19 Compare June 20, 2026 16:28
@UebelAndre UebelAndre force-pushed the crate_universe_cleanup branch 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

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.

1 participant