Skip to content

Commit 11088cb

Browse files
authored
Merge pull request #31 from kyren/remove-foldhash
Remove the `foldhash` direct dependency
2 parents fa27344 + 6914a29 commit 11088cb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [0.10.0]
2+
- API incompatible change: upgrade `hashbrown` to 0.15 (thank you @djc!).
3+
- API incompatible change: we now wrap `DefaultHashBuilder` and `DefaultHasher`
4+
from `hashbrown` so that in the future upgrading `hashbrown` is not an API
5+
incompatible change (thank you @djc!).
6+
17
## [0.9.1]
28
- Bugfix: `LruCache::contains_key` should take `&self` and not move the entry as
39
though it is accessed.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ circle-ci = { repository = "kyren/hashlink", branch = "master" }
1818
serde_impl = ["serde"]
1919

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

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ impl BuildHasher for DefaultHashBuilder {
2929
}
3030

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

3735
impl Hasher for DefaultHasher {
3836
#[inline]

0 commit comments

Comments
 (0)