Skip to content

Commit

Permalink
Merge pull request #44 from Nilstrieb/release13
Browse files Browse the repository at this point in the history
Bump version to 2.0.0 and add changelog
  • Loading branch information
Noratrieb committed Jun 18, 2024
2 parents 3e39d8e + 1ea0196 commit 8f258ee
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## 2.0.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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "2.0", default-features = false }
```

0 comments on commit 8f258ee

Please sign in to comment.