Skip to content

Commit 8f258ee

Browse files
authored
Merge pull request #44 from Nilstrieb/release13
Bump version to 2.0.0 and add changelog
2 parents 3e39d8e + 1ea0196 commit 8f258ee

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## 2.0.0
2+
3+
- Replace hash with faster and better finalized hash.
4+
This replaces the previous "fxhash" algorithm originating in Firefox
5+
with a custom hasher designed and implemented by Orson Peters ([`@orlp`](https://github.com/orlp)).
6+
It was measured to have slightly better performance for rustc, has better theoretical properties
7+
and also includes a signficantly better string hasher.
8+
- Fix `no_std` builds
9+
10+
## 1.2.0 (**YANKED**)
11+
12+
**Note: This version has been yanked due to issues with the `no_std` feature!**
13+
14+
- Add a `FxBuildHasher` unit struct
15+
- Improve documentation
16+
- Add seed API for supplying custom seeds other than 0
17+
- Add `FxRandomState` based on `rand` (behind the `rand` feature) for random seeds
18+
- Make many functions `const fn`
19+
- Implement `Clone` for `FxHasher` struct

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc-hash"
3-
version = "1.2.0"
3+
version = "2.0.0"
44
authors = ["The Rust Project Developers"]
55
description = "A speedy, non-cryptographic hashing algorithm used by rustc"
66
license = "Apache-2.0/MIT"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ The `std` feature is on by default to enable collections.
3838
It can be turned off in `Cargo.toml` like so:
3939

4040
```toml
41-
rustc-hash = { version = "1.2", default-features = false }
41+
rustc-hash = { version = "2.0", default-features = false }
4242
```

0 commit comments

Comments
 (0)