-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Move HashMap to alloc::collections #56192
Comments
The default hasher requires access to the OS's random number generator which isn't available in liballoc. |
@sfackler I realised this, thus the default would be set in std via that type alias, not in alloc. And why we need the trait to implement the new and with_capacity methods. |
Triage: not aware of any real movement here. |
My position is that if you need a no_std hashmap, you can just use the hashbrown crate directly. Maybe we could make this official and add it to the documentation? |
That is not a generally-acceptable solution due to interoperability concerns. Currently, if you get a |
Dup of #27242? |
Closing in favor of #27242. |
Can we move
HashMap
toalloc::collections
?std
could use a type alias to assume the default, and use a trait to add thenew
andwith_capacity
methods back.The text was updated successfully, but these errors were encountered: