Skip to content

No non-deprecated hasher in libcore #37071

Closed
@SimonSapin

Description

@SimonSapin

Since #36815, a #![no_std] crate that uses core::hash::SipHasher gets a deprecation warning that says "use DefaultHasher instead". But DefaultHasher is in std::collections::hash_map and not available in libcore.

All the Sip code is still in libcore, but there is no public non-deprecated API to use it or any other hasher.

Should DefaultHasher be moved to core::hash? (std::collections::hash_map would have a pub use re-export.)

CC @alexcrichton, @sfackler

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions