-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Deprecating hashbrown reexports #11721
Deprecating hashbrown reexports #11721
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
I think the idea was to deprecate just the "stable" variants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, we only want to deprecate the stable variants.
We should also change the note to just explain exactly what this was a type alias was for: just copy the type from the source code :)
Sorry, why only the stable ones: as in, the other 2 seem to only be also just a reexport without any added functionality Edit: nevermind, I think I see why. |
Yeah, we use the faster ones internally all over the place, and they're a good default for games. |
c5ae6d4
to
4f66e92
Compare
Let me know if the wording for the deprecated note look good from your side. |
4f66e92
to
83257ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecation notice looks good :)
Hmm. @SpecificProtagonist, looks like we do actually use this internally.
We should migrate off the internal code as part of this PR if we want to pursue this. But given that we do use it internally, I'm weakly in favor of just leaving it alone and closing this issue and PR. @andristarr thanks for your work here either way; this was good to discover.
Where is that? The use in |
Hmm okay. @andristarr can you rebase this PR to latest main for us? |
crates/bevy_utils/src/lib.rs
Outdated
#[deprecated( | ||
note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashMap<K, V, FixedState>" | ||
)] | ||
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note is incorrect (It's copy pasted from the StableHashMap
one)
83257ac
to
6ecabf7
Compare
6ecabf7
to
49e0089
Compare
Done, should be ready to go! |
Looks great, thanks for the prompt and friendly responses to the reviews :) |
Objective
Solution