-
-
Couldn't load subscription status.
- Fork 4.2k
Hide some re-exports by default. #13673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Why do this rather than just removing the re-exports? |
Maximum backwards compatibility 😄, I'm fine with cutting them. |
|
I'd prefer to cut them: I haven't seen anyone clamoring for these, unlike those from |
None of them are "cuttable" due to them all being used by various macros. I removed the feature and used |
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
|
Hmm, I like this better than the status quo. Can't we just use absolute imports in the macros instead? |
Removed
|
|
I would prefer to keep the re-export, otherwise people using Bevy API need to keep the dependencies at the same version as Bevy or risk incompatibilities |
|
Alright, I can get behind that. So keep the re-exports, but hide them so they don't junk up the auto-complete. |
|
I don't know for others, but I use the re-exports of |
Let me counter this a little bit.
The only contentious crate is |
|
|
|
could we re-export the few items most often used instead of a blanket re-export of the whole crates? |
What would be the common used items? I can only think of Not sure what you would want from No idea about |
Objective
Re-exports of
accesskit,tracing,tracing_subscribersandhashbrownare very annoying when using auto-complete.Solution
Applied
#[doc(hidden)]to re-exports ofaccesskit,tracing, andhashbrown, that causes issues when using editors.Removed
tracing_subscribersre-export.Added featureunhide_reexportsto un-hide them.Testing
Tested with with VSCode.
Migration Guide
bevy_log::tracing_subscribershas been removed.bevy_utils::hashbrown,bevy_utils::tracingandbevy_a11y::accesskitare no longer a part ofbevy's public API and are no longer guaranteed to be exported in future versions.