From cfb593250ebe64d46bb8536d63228ca9f31c9d04 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:26:56 +0200 Subject: [PATCH 1/3] Add changelog Adds changelog entries for the new 1.3.0 release and also for the previous 1.2.0 release. I did not bother documenting previous releases. --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4339726 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +## 1.3.0 + +- Replace hash with faster and better finalized hash. + This replaces the previous "fxhash" algorithm originating in Firefox + with a custom hasher designed and implemented by Orson Peters ([`@orlp`](https://github.com/orlp)). + It was measured to have slightly better performance for rustc, has better theoretical properties + and also includes a signficantly better string hasher. +- Fix `no_std` builds + +## 1.2.0 (**YANKED**) + +**Note: This version has been yanked due to issues with the `no_std` feature!** + +- Add a `FxBuildHasher` unit struct +- Improve documentation +- Add seed API for supplying custom seeds other than 0 +- Add `FxRandomState` based on `rand` (behind the `rand` feature) for random seeds +- Make many functions `const fn` +- Implement `Clone` for `FxHasher` struct From 3be8ec95f24489bbe4e450a845a5c28f859acfa1 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:27:33 +0200 Subject: [PATCH 2/3] Bump version to 2.0.0 --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4339726..fb69023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.3.0 +## 2.0.0 - Replace hash with faster and better finalized hash. This replaces the previous "fxhash" algorithm originating in Firefox diff --git a/Cargo.toml b/Cargo.toml index 2dffe86..3ab67fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustc-hash" -version = "1.2.0" +version = "2.0.0" authors = ["The Rust Project Developers"] description = "A speedy, non-cryptographic hashing algorithm used by rustc" license = "Apache-2.0/MIT" diff --git a/README.md b/README.md index 546a529..f3ab3c9 100644 --- a/README.md +++ b/README.md @@ -38,5 +38,5 @@ The `std` feature is on by default to enable collections. It can be turned off in `Cargo.toml` like so: ```toml -rustc-hash = { version = "1.2", default-features = false } +rustc-hash = { version = "1.3", default-features = false } ``` From 1ea0196c96f8f39fa710231dd9783a8e4ab49179 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 18 Jun 2024 07:39:27 +0200 Subject: [PATCH 3/3] Update Version in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3ab3c9..d93cf46 100644 --- a/README.md +++ b/README.md @@ -38,5 +38,5 @@ The `std` feature is on by default to enable collections. It can be turned off in `Cargo.toml` like so: ```toml -rustc-hash = { version = "1.3", default-features = false } +rustc-hash = { version = "2.0", default-features = false } ```