Skip to content
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

Remove the foldhash direct dependency #31

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.10.0]
- API incompatible change: upgrade `hashbrown` to 0.15 (thank you @djc!).
- API incompatible change: we now wrap `DefaultHashBuilder` and `DefaultHasher`
from `hashbrown` so that in the future upgrading `hashbrown` is not an API
incompatible change (thank you @djc!).

## [0.9.1]
- Bugfix: `LruCache::contains_key` should take `&self` and not move the entry as
though it is accessed.
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ circle-ci = { repository = "kyren/hashlink", branch = "master" }
serde_impl = ["serde"]

[dependencies]
foldhash = { version = "0.1.3", default-features = false }
hashbrown = { version = "0.15", default-features = false, features = ["default-hasher", "inline-more"] }
serde = { version = "1.0", default-features = false, optional = true }

Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ impl BuildHasher for DefaultHashBuilder {
}

/// Default hasher, as selected by hashbrown.
///
/// Currently this is [`foldhash::fast::FoldHasher`].
#[derive(Clone)]
pub struct DefaultHasher(foldhash::fast::FoldHasher);
pub struct DefaultHasher(<hashbrown::DefaultHashBuilder as BuildHasher>::Hasher);

impl Hasher for DefaultHasher {
#[inline]
Expand Down