| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. |
| 4 |
|
| 5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 |
|
| 8 |
## [Unreleased] |
| 9 |
|
| 10 |
## [0.17.1](https://github.com/rust-lang/hashbrown/compare/v0.17.0...v0.17.1) - 2026-04-20 |
| 11 |
|
| 12 |
### Added |
| 13 |
|
| 14 |
- Added `HashMap::rustc_try_insert` (#722) |
| 15 |
|
| 16 |
## [0.17.0](https://github.com/rust-lang/hashbrown/compare/v0.16.1...v0.17.0) - 2026-04-06 |
| 17 |
|
| 18 |
### Added |
| 19 |
|
| 20 |
- Added `hash_table::OccupiedEntry::replace_entry_with` (#669) |
| 21 |
- Added `hash_map::{OccupiedEntry::into_entry, VacantEntryRef::insert_entry_with_key}` (#670) |
| 22 |
- Added `hash_table::UnsafeIter` (#667) |
| 23 |
- Added `iter` methods to various `HashTable` iterators (#667) |
| 24 |
- Added `HashMap::{replace_key,replace_key_unchecked,insert_with_key_unchecked}` (#681) |
| 25 |
- Added `into_map` methods to all `HashMap` entry types (#686) |
| 26 |
- Added `into_table` methods to all `HashTable` entry types (#686) |
| 27 |
- Added `#[must_use]` to constructors (#697) |
| 28 |
- `TryReserveError` now implements `Error` (#698) |
| 29 |
|
| 30 |
### Changed |
| 31 |
|
| 32 |
- Changed `EntryRef` to use `ToOwned` (#670) |
| 33 |
- Bumped MSRV to 1.85 (2024 edition) (#676) |
| 34 |
|
| 35 |
### Fixed |
| 36 |
|
| 37 |
- `HashTable:clone_from` now forwards to `RawTable::clone_from` instead of using the default implementation (#668) |
| 38 |
- Fixed potential UB in `RawTableInner::fallible_with_capacity` (#692) |
| 39 |
- Fixed incorrect length if a hasher panics during rehash (#710) |
| 40 |
|
| 41 |
## [0.16.1](https://github.com/rust-lang/hashbrown/compare/v0.16.0...v0.16.1) - 2025-11-20 |
| 42 |
|
| 43 |
### Added |
| 44 |
|
| 45 |
- Added `HashTable` methods related to the raw bucket index (#657) |
| 46 |
- Added `VacantEntryRef::insert_with_key` (#579) |
| 47 |
|
| 48 |
### Changed |
| 49 |
|
| 50 |
- Removed specialization for `Copy` types (#662) |
| 51 |
- The `get_many_mut` family of methods have been renamed to `get_disjoint_mut` |
| 52 |
to match the standard library. The old names are still present for now, but |
| 53 |
deprecated. (#648) |
| 54 |
- Recognize and use over-sized allocations when using custom allocators. (#523) |
| 55 |
- Depend on `serde_core` instead of `serde`. (#649) |
| 56 |
- Optimized `collect` on rayon parallel iterators. (#652) |
| 57 |
|
| 58 |
## [0.16.0](https://github.com/rust-lang/hashbrown/compare/v0.15.5...v0.16.0) - 2025-08-28 |
| 59 |
|
| 60 |
### Changed |
| 61 |
|
| 62 |
- Bump foldhash, the default hasher, to 0.2.0. |
| 63 |
- Replaced `DefaultHashBuilder` with a newtype wrapper around `foldhash` instead |
| 64 |
of re-exporting it directly. |
| 65 |
|
| 66 |
## [0.15.5](https://github.com/rust-lang/hashbrown/compare/v0.15.4...v0.15.5) - 2025-08-07 |
| 67 |
|
| 68 |
### Added |
| 69 |
|
| 70 |
- Added `Entry::or_default_entry` and `Entry::or_insert_entry`. |
| 71 |
|
| 72 |
### Changed |
| 73 |
|
| 74 |
- Re-implemented likely/unlikely with `#[cold]` |
| 75 |
|
| 76 |
## [0.15.4](https://github.com/rust-lang/hashbrown/compare/v0.15.3...v0.15.4) - 2025-06-05 |
| 77 |
|
| 78 |
### Changed |
| 79 |
|
| 80 |
- Removed optional dependency on compiler-builtins. This only affects building as part of `std`. |
| 81 |
|
| 82 |
## [0.15.3](https://github.com/rust-lang/hashbrown/compare/v0.15.2...v0.15.3) - 2025-04-29 |
| 83 |
|
| 84 |
### Added |
| 85 |
|
| 86 |
- SIMD implementation for LoongArch (#592, requires nightly) |
| 87 |
|
| 88 |
### Changed |
| 89 |
|
| 90 |
- Optimized insertion path by avoiding an unnecessary `match_empty` (#607) |
| 91 |
- Increased minimum table size for small types (#615) |
| 92 |
- Dropped FnMut trait bounds from `ExtractIf` data structures (#616) |
| 93 |
- Relaxed constraint in `hash_map::EntryRef` insertion methods `K: From<&Q>` to &Q: `Into<K>` (#611) |
| 94 |
- Added allocator template argument for `rustc_iter` (#605) |
| 95 |
- The `allocator-api2/nightly` feature is no longer enabled by `hashbrown/nightly` (#606) |
| 96 |
|
| 97 |
## [v0.15.2] - 2024-11-14 |
| 98 |
|
| 99 |
### Added |
| 100 |
|
| 101 |
- Marked `const fn` constructors as `rustc_const_stable_indirect` when built as |
| 102 |
part of the standard library. (#586) |
| 103 |
|
| 104 |
## [v0.15.1] - 2024-11-03 |
| 105 |
|
| 106 |
This release removes the `borsh` feature introduced in 0.15.0 because it was |
| 107 |
found to be incorrectly implemented. Users should use the `hashbrown` feature of |
| 108 |
the `borsh` crate instead which provides the same trait implementations. |
| 109 |
|
| 110 |
## ~~[v0.15.0] - 2024-10-01~~ |
| 111 |
|
| 112 |
This release was _yanked_ due to a broken implementation of the `borsh` feature. |
| 113 |
|
| 114 |
This update contains breaking changes that remove the `raw` API with the hope of |
| 115 |
centralising on the `HashTable` API in the future. You can follow the discussion |
| 116 |
and progress in #545 to discuss features you think should be added to this API |
| 117 |
that were previously only possible on the `raw` API. |
| 118 |
|
| 119 |
### Added |
| 120 |
|
| 121 |
- Added `borsh` feature with `BorshSerialize` and `BorshDeserialize` impls. (#525) |
| 122 |
- Added `Assign` impls for `HashSet` operators. (#529) |
| 123 |
- Added `Default` impls for iterator types. (#542) |
| 124 |
- Added `HashTable::iter_hash{,_mut}` methods. (#549) |
| 125 |
- Added `Hash{Table,Map,Set}::allocation_size` methods. (#553) |
| 126 |
- Implemented `Debug` and `FusedIterator` for all `HashTable` iterators. (#561) |
| 127 |
- Specialized `Iterator::fold` for all `HashTable` iterators. (#561) |
| 128 |
|
| 129 |
### Changed |
| 130 |
|
| 131 |
- Changed `hash_set::VacantEntry::insert` to return `OccupiedEntry`. (#495) |
| 132 |
- Improved`hash_set::Difference::size_hint` lower-bound. (#530) |
| 133 |
- Improved `HashSet::is_disjoint` performance. (#531) |
| 134 |
- `equivalent` feature is now enabled by default. (#532) |
| 135 |
- `HashSet` operators now return a set with the same allocator. (#529) |
| 136 |
- Changed the default hasher to foldhash. (#563) |
| 137 |
- `ahash` feature has been renamed to `default-hasher`. (#533) |
| 138 |
- Entry API has been reworked and several methods have been renamed. (#535) |
| 139 |
- `Hash{Map,Set}::insert_unique_unchecked` is now unsafe. (#556) |
| 140 |
- The signature of `get_many_mut` and related methods was changed. (#562) |
| 141 |
|
| 142 |
### Fixed |
| 143 |
|
| 144 |
* Fixed typos, stray backticks in docs. (#558, #560) |
| 145 |
|
| 146 |
### Removed |
| 147 |
|
| 148 |
- Raw entry API is now under `raw-entry` feature, to be eventually removed. (#534, #555) |
| 149 |
- Raw table API has been made private and the `raw` feature is removed; |
| 150 |
in the future, all code should be using the `HashTable` API instead. (#531, #546) |
| 151 |
- `rykv` feature was removed; this is now provided by the `rykv` crate instead. (#554) |
| 152 |
- `HashSet::get_or_insert_owned` was removed in favor of `get_or_insert_with`. (#555) |
| 153 |
|
| 154 |
## [v0.14.5] - 2024-04-28 |
| 155 |
|
| 156 |
### Fixed |
| 157 |
|
| 158 |
- Fixed index calculation in panic guard of `clone_from_impl`. (#511) |
| 159 |
|
| 160 |
## ~~[v0.14.4] - 2024-03-19~~ |
| 161 |
|
| 162 |
This release was _yanked_ due to a breaking change. |
| 163 |
|
| 164 |
## [v0.14.3] - 2023-11-26 |
| 165 |
|
| 166 |
### Added |
| 167 |
|
| 168 |
- Specialized `fold` implementation of iterators. (#480) |
| 169 |
|
| 170 |
### Fixed |
| 171 |
|
| 172 |
- Avoid using unstable `ptr::invalid_mut` on nightly. (#481) |
| 173 |
|
| 174 |
## [v0.14.2] - 2023-10-19 |
| 175 |
|
| 176 |
### Added |
| 177 |
|
| 178 |
- `HashTable` type which provides a low-level but safe API with explicit hashing. (#466) |
| 179 |
|
| 180 |
### Fixed |
| 181 |
|
| 182 |
- Disabled the use of NEON instructions on big-endian ARM. (#475) |
| 183 |
- Disabled the use of NEON instructions on Miri. (#476) |
| 184 |
|
| 185 |
## [v0.14.1] - 2023-09-28 |
| 186 |
|
| 187 |
### Added |
| 188 |
|
| 189 |
- Allow serializing `HashMap`s that use a custom allocator. (#449) |
| 190 |
|
| 191 |
### Changed |
| 192 |
|
| 193 |
- Use the `Equivalent` trait from the `equivalent` crate. (#442) |
| 194 |
- Slightly improved performance of table resizing. (#451) |
| 195 |
- Relaxed MSRV to 1.63.0. (#457) |
| 196 |
- Removed `Clone` requirement from custom allocators. (#468) |
| 197 |
|
| 198 |
### Fixed |
| 199 |
|
| 200 |
- Fixed custom allocators being leaked in some situations. (#439, #465) |
| 201 |
|
| 202 |
## [v0.14.0] - 2023-06-01 |
| 203 |
|
| 204 |
### Added |
| 205 |
|
| 206 |
- Support for `allocator-api2` crate |
| 207 |
for interfacing with custom allocators on stable. (#417) |
| 208 |
- Optimized implementation for ARM using NEON instructions. (#430) |
| 209 |
- Support for rkyv serialization. (#432) |
| 210 |
- `Equivalent` trait to look up values without `Borrow`. (#345) |
| 211 |
- `Hash{Map,Set}::raw_table_mut` is added which returns a mutable reference. (#404) |
| 212 |
- Fast path for `clear` on empty tables. (#428) |
| 213 |
|
| 214 |
### Changed |
| 215 |
|
| 216 |
- Optimized insertion to only perform a single lookup. (#277) |
| 217 |
- `DrainFilter` (`drain_filter`) has been renamed to `ExtractIf` and no longer drops remaining |
| 218 |
elements when the iterator is dropped. #(374) |
| 219 |
- Bumped MSRV to 1.64.0. (#431) |
| 220 |
- `{Map,Set}::raw_table` now returns an immutable reference. (#404) |
| 221 |
- `VacantEntry` and `OccupiedEntry` now use the default hasher if none is |
| 222 |
specified in generics. (#389) |
| 223 |
- `RawTable::data_start` now returns a `NonNull` to match `RawTable::data_end`. (#387) |
| 224 |
- `RawIter::{reflect_insert, reflect_remove}` are now unsafe. (#429) |
| 225 |
- `RawTable::find_potential` is renamed to `find_or_find_insert_slot` and returns an `InsertSlot`. (#429) |
| 226 |
- `RawTable::remove` now also returns an `InsertSlot`. (#429) |
| 227 |
- `InsertSlot` can be used to insert an element with `RawTable::insert_in_slot`. (#429) |
| 228 |
- `RawIterHash` no longer has a lifetime tied to that of the `RawTable`. (#427) |
| 229 |
- The trait bounds of `HashSet::raw_table` have been relaxed to not require `Eq + Hash`. (#423) |
| 230 |
- `EntryRef::and_replace_entry_with` and `OccupiedEntryRef::replace_entry_with` |
| 231 |
were changed to give a `&K` instead of a `&Q` to the closure. |
| 232 |
|
| 233 |
### Removed |
| 234 |
|
| 235 |
- Support for `bumpalo` as an allocator with custom wrapper. |
| 236 |
Use `allocator-api2` feature in `bumpalo` to use it as an allocator |
| 237 |
for `hashbrown` collections. (#417) |
| 238 |
|
| 239 |
## [v0.13.2] - 2023-01-12 |
| 240 |
|
| 241 |
### Fixed |
| 242 |
|
| 243 |
- Added `#[inline(always)]` to `find_inner`. (#375) |
| 244 |
- Fixed `RawTable::allocation_info` for empty tables. (#376) |
| 245 |
|
| 246 |
## [v0.13.1] - 2022-11-10 |
| 247 |
|
| 248 |
### Added |
| 249 |
|
| 250 |
- Added `Equivalent` trait to customize key lookups. (#350) |
| 251 |
- Added support for 16-bit targets. (#368) |
| 252 |
- Added `RawTable::allocation_info` which provides information about the memory |
| 253 |
usage of a table. (#371) |
| 254 |
|
| 255 |
### Changed |
| 256 |
|
| 257 |
- Bumped MSRV to 1.61.0. |
| 258 |
- Upgraded to `ahash` 0.8. (#357) |
| 259 |
- Make `with_hasher_in` const. (#355) |
| 260 |
- The following methods have been removed from the `RawTable` API in favor of |
| 261 |
safer alternatives: |
| 262 |
- `RawTable::erase_no_drop` => Use `RawTable::erase` or `RawTable::remove` instead. |
| 263 |
- `Bucket::read` => Use `RawTable::remove` instead. |
| 264 |
- `Bucket::drop` => Use `RawTable::erase` instead. |
| 265 |
- `Bucket::write` => Use `Bucket::as_mut` instead. |
| 266 |
|
| 267 |
### Fixed |
| 268 |
|
| 269 |
- Ensure that `HashMap` allocations don't exceed `isize::MAX`. (#362) |
| 270 |
- Fixed issue with field retagging in scopeguard. (#359) |
| 271 |
|
| 272 |
## [v0.12.3] - 2022-07-17 |
| 273 |
|
| 274 |
### Fixed |
| 275 |
|
| 276 |
- Fixed double-drop in `RawTable::clone_from`. (#348) |
| 277 |
|
| 278 |
## [v0.12.2] - 2022-07-09 |
| 279 |
|
| 280 |
### Added |
| 281 |
|
| 282 |
- Added `Entry` API for `HashSet`. (#342) |
| 283 |
- Added `Extend<&'a (K, V)> for HashMap<K, V, S, A>`. (#340) |
| 284 |
- Added length-based short-circuiting for hash table iteration. (#338) |
| 285 |
- Added a function to access the `RawTable` of a `HashMap`. (#335) |
| 286 |
|
| 287 |
### Changed |
| 288 |
|
| 289 |
- Edited `do_alloc` to reduce LLVM IR generated. (#341) |
| 290 |
|
| 291 |
## [v0.12.1] - 2022-05-02 |
| 292 |
|
| 293 |
### Fixed |
| 294 |
|
| 295 |
- Fixed underflow in `RawIterRange::size_hint`. (#325) |
| 296 |
- Fixed the implementation of `Debug` for `ValuesMut` and `IntoValues`. (#325) |
| 297 |
|
| 298 |
## [v0.12.0] - 2022-01-17 |
| 299 |
|
| 300 |
### Added |
| 301 |
|
| 302 |
- Added `From<[T; N]>` and `From<[(K, V); N]>` for `HashSet` and `HashMap` respectively. (#297) |
| 303 |
- Added an `allocator()` getter to HashMap and HashSet. (#257) |
| 304 |
- Added `insert_unique_unchecked` to `HashMap` and `HashSet`. (#293) |
| 305 |
- Added `into_keys` and `into_values` to HashMap. (#295) |
| 306 |
- Implement `From<array>` on `HashSet` and `HashMap`. (#298) |
| 307 |
- Added `entry_ref` API to `HashMap`. (#201) |
| 308 |
|
| 309 |
### Changed |
| 310 |
|
| 311 |
- Bumped minimum Rust version to 1.56.1 and edition to 2021. |
| 312 |
- Use u64 for the GroupWord on WebAssembly. (#271) |
| 313 |
- Optimized `find`. (#279) |
| 314 |
- Made rehashing and resizing less generic to reduce compilation time. (#282) |
| 315 |
- Inlined small functions. (#283) |
| 316 |
- Use `BuildHasher::hash_one` when `feature = "nightly"` is enabled. (#292) |
| 317 |
- Relaxed the bounds on `Debug` for `HashSet`. (#296) |
| 318 |
- Rename `get_each_mut` to `get_many_mut` and align API with the stdlib. (#291) |
| 319 |
- Don't hash the key when searching in an empty table. (#305) |
| 320 |
|
| 321 |
### Fixed |
| 322 |
|
| 323 |
- Guard against allocations exceeding isize::MAX. (#268) |
| 324 |
- Made `RawTable::insert_no_grow` unsafe. (#254) |
| 325 |
- Inline `static_empty`. (#280) |
| 326 |
- Fixed trait bounds on Send/Sync impls. (#303) |
| 327 |
|
| 328 |
## [v0.11.2] - 2021-03-25 |
| 329 |
|
| 330 |
### Fixed |
| 331 |
|
| 332 |
- Added missing allocator type parameter to `HashMap`'s and `HashSet`'s `Clone` impls. (#252) |
| 333 |
|
| 334 |
## [v0.11.1] - 2021-03-20 |
| 335 |
|
| 336 |
### Fixed |
| 337 |
|
| 338 |
- Added missing `pub` modifier to `BumpWrapper`. (#251) |
| 339 |
|
| 340 |
## [v0.11.0] - 2021-03-14 |
| 341 |
|
| 342 |
### Added |
| 343 |
- Added safe `try_insert_no_grow` method to `RawTable`. (#229) |
| 344 |
- Added support for `bumpalo` as an allocator without the `nightly` feature. (#231) |
| 345 |
- Implemented `Default` for `RawTable`. (#237) |
| 346 |
- Added new safe methods `RawTable::get_each_mut`, `HashMap::get_each_mut`, and |
| 347 |
`HashMap::get_each_key_value_mut`. (#239) |
| 348 |
- Added `From<HashMap<T, ()>>` for `HashSet<T>`. (#235) |
| 349 |
- Added `try_insert` method to `HashMap`. (#247) |
| 350 |
|
| 351 |
### Changed |
| 352 |
- The minimum Rust version has been bumped to 1.49.0. (#230) |
| 353 |
- Significantly improved compilation times by reducing the amount of generated IR. (#205) |
| 354 |
|
| 355 |
### Removed |
| 356 |
- We no longer re-export the unstable allocator items from the standard library, nor the stable shims approximating the same. (#227) |
| 357 |
- Removed hasher specialization support from `aHash`, which was resulting in inconsistent hashes being generated for a key. (#248) |
| 358 |
|
| 359 |
### Fixed |
| 360 |
- Fixed union length comparison. (#228) |
| 361 |
|
| 362 |
## ~~[v0.10.0] - 2021-01-16~~ |
| 363 |
|
| 364 |
This release was _yanked_ due to inconsistent hashes being generated with the `nightly` feature. (#248) |
| 365 |
|
| 366 |
### Changed |
| 367 |
- Parametrized `RawTable`, `HashSet` and `HashMap` over an allocator. (#133) |
| 368 |
- Improved branch prediction hints on stable. (#209) |
| 369 |
- Optimized hashing of primitive types with AHash using specialization. (#207) |
| 370 |
- Only instantiate `RawTable`'s reserve functions once per key-value. (#204) |
| 371 |
|
| 372 |
## [v0.9.1] - 2020-09-28 |
| 373 |
|
| 374 |
### Added |
| 375 |
- Added safe methods to `RawTable` (#202): |
| 376 |
- `get`: `find` and `as_ref` |
| 377 |
- `get_mut`: `find` and `as_mut` |
| 378 |
- `insert_entry`: `insert` and `as_mut` |
| 379 |
- `remove_entry`: `find` and `remove` |
| 380 |
- `erase_entry`: `find` and `erase` |
| 381 |
|
| 382 |
### Changed |
| 383 |
- Removed `from_key_hashed_nocheck`'s `Q: Hash`. (#200) |
| 384 |
- Made `RawTable::drain` safe. (#201) |
| 385 |
|
| 386 |
## [v0.9.0] - 2020-09-03 |
| 387 |
|
| 388 |
### Fixed |
| 389 |
- `drain_filter` now removes and yields items that do match the predicate, |
| 390 |
rather than items that don't. This is a **breaking change** to match the |
| 391 |
behavior of the `drain_filter` methods in `std`. (#187) |
| 392 |
|
| 393 |
### Added |
| 394 |
- Added `replace_entry_with` to `OccupiedEntry`, and `and_replace_entry_with` to `Entry`. (#190) |
| 395 |
- Implemented `FusedIterator` and `size_hint` for `DrainFilter`. (#188) |
| 396 |
|
| 397 |
### Changed |
| 398 |
- The minimum Rust version has been bumped to 1.36 (due to `crossbeam` dependency). (#193) |
| 399 |
- Updated `ahash` dependency to 0.4. (#198) |
| 400 |
- `HashMap::with_hasher` and `HashSet::with_hasher` are now `const fn`. (#195) |
| 401 |
- Removed `T: Hash + Eq` and `S: BuildHasher` bounds on `HashSet::new`, |
| 402 |
`with_capacity`, `with_hasher`, and `with_capacity_and_hasher`. (#185) |
| 403 |
|
| 404 |
## [v0.8.2] - 2020-08-08 |
| 405 |
|
| 406 |
### Changed |
| 407 |
- Avoid closures to improve compile times. (#183) |
| 408 |
- Do not iterate to drop if empty. (#182) |
| 409 |
|
| 410 |
## [v0.8.1] - 2020-07-16 |
| 411 |
|
| 412 |
### Added |
| 413 |
- Added `erase` and `remove` to `RawTable`. (#171) |
| 414 |
- Added `try_with_capacity` to `RawTable`. (#174) |
| 415 |
- Added methods that allow re-using a `RawIter` for `RawDrain`, |
| 416 |
`RawIntoIter`, and `RawParIter`. (#175) |
| 417 |
- Added `reflect_remove` and `reflect_insert` to `RawIter`. (#175) |
| 418 |
- Added a `drain_filter` function to `HashSet`. (#179) |
| 419 |
|
| 420 |
### Changed |
| 421 |
- Deprecated `RawTable::erase_no_drop` in favor of `erase` and `remove`. (#176) |
| 422 |
- `insert_no_grow` is now exposed under the `"raw"` feature. (#180) |
| 423 |
|
| 424 |
## [v0.8.0] - 2020-06-18 |
| 425 |
|
| 426 |
### Fixed |
| 427 |
- Marked `RawTable::par_iter` as `unsafe`. (#157) |
| 428 |
|
| 429 |
### Changed |
| 430 |
- Reduced the size of `HashMap`. (#159) |
| 431 |
- No longer create tables with a capacity of 1 element. (#162) |
| 432 |
- Removed `K: Eq + Hash` bounds on `retain`. (#163) |
| 433 |
- Pulled in `HashMap` changes from rust-lang/rust (#164): |
| 434 |
- `extend_one` support on nightly. |
| 435 |
- `CollectionAllocErr` renamed to `TryReserveError`. |
| 436 |
- Added `HashSet::get_or_insert_owned`. |
| 437 |
- `Default` for `HashSet` no longer requires `T: Eq + Hash` and `S: BuildHasher`. |
| 438 |
|
| 439 |
## [v0.7.2] - 2020-04-27 |
| 440 |
|
| 441 |
### Added |
| 442 |
- Added `or_insert_with_key` to `Entry`. (#152) |
| 443 |
|
| 444 |
### Fixed |
| 445 |
- Partially reverted `Clone` optimization which was unsound. (#154) |
| 446 |
|
| 447 |
### Changed |
| 448 |
- Disabled use of `const-random` by default, which prevented reproducible builds. (#155) |
| 449 |
- Optimized `repeat` function. (#150) |
| 450 |
- Use `NonNull` for buckets, which improves codegen for iterators. (#148) |
| 451 |
|
| 452 |
## [v0.7.1] - 2020-03-16 |
| 453 |
|
| 454 |
### Added |
| 455 |
- Added `HashMap::get_key_value_mut`. (#145) |
| 456 |
|
| 457 |
### Changed |
| 458 |
- Optimized `Clone` implementation. (#146) |
| 459 |
|
| 460 |
## [v0.7.0] - 2020-01-31 |
| 461 |
|
| 462 |
### Added |
| 463 |
- Added a `drain_filter` function to `HashMap`. (#135) |
| 464 |
|
| 465 |
### Changed |
| 466 |
- Updated `ahash` dependency to 0.3. (#141) |
| 467 |
- Optimized set union and intersection. (#130) |
| 468 |
- `raw_entry` can now be used without requiring `S: BuildHasher`. (#123) |
| 469 |
- `RawTable::bucket_index` can now be used under the `raw` feature. (#128) |
| 470 |
|
| 471 |
## [v0.6.3] - 2019-10-31 |
| 472 |
|
| 473 |
### Added |
| 474 |
- Added an `ahash-compile-time-rng` feature (enabled by default) which allows disabling the |
| 475 |
`compile-time-rng` feature in `ahash` to work around a Cargo bug. (#125) |
| 476 |
|
| 477 |
## [v0.6.2] - 2019-10-23 |
| 478 |
|
| 479 |
### Added |
| 480 |
- Added an `inline-more` feature (enabled by default) which allows choosing a tradeoff between |
| 481 |
runtime performance and compilation time. (#119) |
| 482 |
|
| 483 |
## [v0.6.1] - 2019-10-04 |
| 484 |
|
| 485 |
### Added |
| 486 |
- Added `Entry::insert` and `RawEntryMut::insert`. (#118) |
| 487 |
|
| 488 |
### Changed |
| 489 |
- `Group::static_empty` was changed from a `const` to a `static` (#116). |
| 490 |
|
| 491 |
## [v0.6.0] - 2019-08-13 |
| 492 |
|
| 493 |
### Fixed |
| 494 |
- Fixed AHash accidentally depending on `std`. (#110) |
| 495 |
|
| 496 |
### Changed |
| 497 |
- The minimum Rust version has been bumped to 1.32 (due to `rand` dependency). |
| 498 |
|
| 499 |
## ~~[v0.5.1] - 2019-08-04~~ |
| 500 |
|
| 501 |
This release was _yanked_ due to a breaking change for users of `no-default-features`. |
| 502 |
|
| 503 |
### Added |
| 504 |
- The experimental and unsafe `RawTable` API is available under the "raw" feature. (#108) |
| 505 |
- Added entry-like methods for `HashSet`. (#98) |
| 506 |
|
| 507 |
### Changed |
| 508 |
- Changed the default hasher from FxHash to AHash. (#97) |
| 509 |
- `hashbrown` is now fully `no_std` on recent Rust versions (1.36+). (#96) |
| 510 |
|
| 511 |
### Fixed |
| 512 |
- We now avoid growing the table during insertions when it wasn't necessary. (#106) |
| 513 |
- `RawOccupiedEntryMut` now properly implements `Send` and `Sync`. (#100) |
| 514 |
- Relaxed `lazy_static` version. (#92) |
| 515 |
|
| 516 |
## [v0.5.0] - 2019-06-12 |
| 517 |
|
| 518 |
### Fixed |
| 519 |
- Resize with a more conservative amount of space after deletions. (#86) |
| 520 |
|
| 521 |
### Changed |
| 522 |
- Exposed the Layout of the failed allocation in CollectionAllocErr::AllocErr. (#89) |
| 523 |
|
| 524 |
## [v0.4.0] - 2019-05-30 |
| 525 |
|
| 526 |
### Fixed |
| 527 |
- Fixed `Send` trait bounds on `IterMut` not matching the libstd one. (#82) |
| 528 |
|
| 529 |
## [v0.3.1] - 2019-05-30 |
| 530 |
|
| 531 |
### Fixed |
| 532 |
- Fixed incorrect use of slice in unsafe code. (#80) |
| 533 |
|
| 534 |
## [v0.3.0] - 2019-04-23 |
| 535 |
|
| 536 |
### Changed |
| 537 |
- Changed shrink_to to not panic if min_capacity < capacity. (#67) |
| 538 |
|
| 539 |
### Fixed |
| 540 |
- Worked around emscripten bug emscripten-core/emscripten-fastcomp#258. (#66) |
| 541 |
|
| 542 |
## [v0.2.2] - 2019-04-16 |
| 543 |
|
| 544 |
### Fixed |
| 545 |
- Inlined non-nightly lowest_set_bit_nonzero. (#64) |
| 546 |
- Fixed build on latest nightly. (#65) |
| 547 |
|
| 548 |
## [v0.2.1] - 2019-04-14 |
| 549 |
|
| 550 |
### Changed |
| 551 |
- Use for_each in map Extend and FromIterator. (#58) |
| 552 |
- Improved worst-case performance of HashSet.is_subset. (#61) |
| 553 |
|
| 554 |
### Fixed |
| 555 |
- Removed incorrect debug_assert. (#60) |
| 556 |
|
| 557 |
## [v0.2.0] - 2019-03-31 |
| 558 |
|
| 559 |
### Changed |
| 560 |
- The code has been updated to Rust 2018 edition. This means that the minimum |
| 561 |
Rust version has been bumped to 1.31 (2018 edition). |
| 562 |
|
| 563 |
### Added |
| 564 |
- Added `insert_with_hasher` to the raw_entry API to allow `K: !(Hash + Eq)`. (#54) |
| 565 |
- Added support for using hashbrown as the hash table implementation in libstd. (#46) |
| 566 |
|
| 567 |
### Fixed |
| 568 |
- Fixed cargo build with minimal-versions. (#45) |
| 569 |
- Fixed `#[may_dangle]` attributes to match the libstd `HashMap`. (#46) |
| 570 |
- ZST keys and values are now handled properly. (#46) |
| 571 |
|
| 572 |
## [v0.1.8] - 2019-01-14 |
| 573 |
|
| 574 |
### Added |
| 575 |
- Rayon parallel iterator support (#37) |
| 576 |
- `raw_entry` support (#31) |
| 577 |
- `#[may_dangle]` on nightly (#31) |
| 578 |
- `try_reserve` support (#31) |
| 579 |
|
| 580 |
### Fixed |
| 581 |
- Fixed variance on `IterMut`. (#31) |
| 582 |
|
| 583 |
## [v0.1.7] - 2018-12-05 |
| 584 |
|
| 585 |
### Fixed |
| 586 |
- Fixed non-SSE version of convert_special_to_empty_and_full_to_deleted. (#32) |
| 587 |
- Fixed overflow in rehash_in_place. (#33) |
| 588 |
|
| 589 |
## [v0.1.6] - 2018-11-17 |
| 590 |
|
| 591 |
### Fixed |
| 592 |
- Fixed compile error on nightly. (#29) |
| 593 |
|
| 594 |
## [v0.1.5] - 2018-11-08 |
| 595 |
|
| 596 |
### Fixed |
| 597 |
- Fixed subtraction overflow in generic::Group::match_byte. (#28) |
| 598 |
|
| 599 |
## [v0.1.4] - 2018-11-04 |
| 600 |
|
| 601 |
### Fixed |
| 602 |
- Fixed a bug in the `erase_no_drop` implementation. (#26) |
| 603 |
|
| 604 |
## [v0.1.3] - 2018-11-01 |
| 605 |
|
| 606 |
### Added |
| 607 |
- Serde support. (#14) |
| 608 |
|
| 609 |
### Fixed |
| 610 |
- Make the compiler inline functions more aggressively. (#20) |
| 611 |
|
| 612 |
## [v0.1.2] - 2018-10-31 |
| 613 |
|
| 614 |
### Fixed |
| 615 |
- `clear` segfaults when called on an empty table. (#13) |
| 616 |
|
| 617 |
## [v0.1.1] - 2018-10-30 |
| 618 |
|
| 619 |
### Fixed |
| 620 |
- `erase_no_drop` optimization not triggering in the SSE2 implementation. (#3) |
| 621 |
- Missing `Send` and `Sync` for hash map and iterator types. (#7) |
| 622 |
- Bug when inserting into a table smaller than the group width. (#5) |
| 623 |
|
| 624 |
## v0.1.0 - 2018-10-29 |
| 625 |
|
| 626 |
- Initial release |
| 627 |
|
| 628 |
[Unreleased]: https://github.com/rust-lang/hashbrown/compare/v0.15.2...HEAD |
| 629 |
[v0.15.2]: https://github.com/rust-lang/hashbrown/compare/v0.15.1...v0.15.2 |
| 630 |
[v0.15.1]: https://github.com/rust-lang/hashbrown/compare/v0.15.0...v0.15.1 |
| 631 |
[v0.15.0]: https://github.com/rust-lang/hashbrown/compare/v0.14.5...v0.15.0 |
| 632 |
[v0.14.5]: https://github.com/rust-lang/hashbrown/compare/v0.14.4...v0.14.5 |
| 633 |
[v0.14.4]: https://github.com/rust-lang/hashbrown/compare/v0.14.3...v0.14.4 |
| 634 |
[v0.14.3]: https://github.com/rust-lang/hashbrown/compare/v0.14.2...v0.14.3 |
| 635 |
[v0.14.2]: https://github.com/rust-lang/hashbrown/compare/v0.14.1...v0.14.2 |
| 636 |
[v0.14.1]: https://github.com/rust-lang/hashbrown/compare/v0.14.0...v0.14.1 |
| 637 |
[v0.14.0]: https://github.com/rust-lang/hashbrown/compare/v0.13.2...v0.14.0 |
| 638 |
[v0.13.2]: https://github.com/rust-lang/hashbrown/compare/v0.13.1...v0.13.2 |
| 639 |
[v0.13.1]: https://github.com/rust-lang/hashbrown/compare/v0.12.3...v0.13.1 |
| 640 |
[v0.12.3]: https://github.com/rust-lang/hashbrown/compare/v0.12.2...v0.12.3 |
| 641 |
[v0.12.2]: https://github.com/rust-lang/hashbrown/compare/v0.12.1...v0.12.2 |
| 642 |
[v0.12.1]: https://github.com/rust-lang/hashbrown/compare/v0.12.0...v0.12.1 |
| 643 |
[v0.12.0]: https://github.com/rust-lang/hashbrown/compare/v0.11.2...v0.12.0 |
| 644 |
[v0.11.2]: https://github.com/rust-lang/hashbrown/compare/v0.11.1...v0.11.2 |
| 645 |
[v0.11.1]: https://github.com/rust-lang/hashbrown/compare/v0.11.0...v0.11.1 |
| 646 |
[v0.11.0]: https://github.com/rust-lang/hashbrown/compare/v0.10.0...v0.11.0 |
| 647 |
[v0.10.0]: https://github.com/rust-lang/hashbrown/compare/v0.9.1...v0.10.0 |
| 648 |
[v0.9.1]: https://github.com/rust-lang/hashbrown/compare/v0.9.0...v0.9.1 |
| 649 |
[v0.9.0]: https://github.com/rust-lang/hashbrown/compare/v0.8.2...v0.9.0 |
| 650 |
[v0.8.2]: https://github.com/rust-lang/hashbrown/compare/v0.8.1...v0.8.2 |
| 651 |
[v0.8.1]: https://github.com/rust-lang/hashbrown/compare/v0.8.0...v0.8.1 |
| 652 |
[v0.8.0]: https://github.com/rust-lang/hashbrown/compare/v0.7.2...v0.8.0 |
| 653 |
[v0.7.2]: https://github.com/rust-lang/hashbrown/compare/v0.7.1...v0.7.2 |
| 654 |
[v0.7.1]: https://github.com/rust-lang/hashbrown/compare/v0.7.0...v0.7.1 |
| 655 |
[v0.7.0]: https://github.com/rust-lang/hashbrown/compare/v0.6.3...v0.7.0 |
| 656 |
[v0.6.3]: https://github.com/rust-lang/hashbrown/compare/v0.6.2...v0.6.3 |
| 657 |
[v0.6.2]: https://github.com/rust-lang/hashbrown/compare/v0.6.1...v0.6.2 |
| 658 |
[v0.6.1]: https://github.com/rust-lang/hashbrown/compare/v0.6.0...v0.6.1 |
| 659 |
[v0.6.0]: https://github.com/rust-lang/hashbrown/compare/v0.5.1...v0.6.0 |
| 660 |
[v0.5.1]: https://github.com/rust-lang/hashbrown/compare/v0.5.0...v0.5.1 |
| 661 |
[v0.5.0]: https://github.com/rust-lang/hashbrown/compare/v0.4.0...v0.5.0 |
| 662 |
[v0.4.0]: https://github.com/rust-lang/hashbrown/compare/v0.3.1...v0.4.0 |
| 663 |
[v0.3.1]: https://github.com/rust-lang/hashbrown/compare/v0.3.0...v0.3.1 |
| 664 |
[v0.3.0]: https://github.com/rust-lang/hashbrown/compare/v0.2.2...v0.3.0 |
| 665 |
[v0.2.2]: https://github.com/rust-lang/hashbrown/compare/v0.2.1...v0.2.2 |
| 666 |
[v0.2.1]: https://github.com/rust-lang/hashbrown/compare/v0.2.0...v0.2.1 |
| 667 |
[v0.2.0]: https://github.com/rust-lang/hashbrown/compare/v0.1.8...v0.2.0 |
| 668 |
[v0.1.8]: https://github.com/rust-lang/hashbrown/compare/v0.1.7...v0.1.8 |
| 669 |
[v0.1.7]: https://github.com/rust-lang/hashbrown/compare/v0.1.6...v0.1.7 |
| 670 |
[v0.1.6]: https://github.com/rust-lang/hashbrown/compare/v0.1.5...v0.1.6 |
| 671 |
[v0.1.5]: https://github.com/rust-lang/hashbrown/compare/v0.1.4...v0.1.5 |
| 672 |
[v0.1.4]: https://github.com/rust-lang/hashbrown/compare/v0.1.3...v0.1.4 |
| 673 |
[v0.1.3]: https://github.com/rust-lang/hashbrown/compare/v0.1.2...v0.1.3 |
| 674 |
[v0.1.2]: https://github.com/rust-lang/hashbrown/compare/v0.1.1...v0.1.2 |
| 675 |
[v0.1.1]: https://github.com/rust-lang/hashbrown/compare/v0.1.0...v0.1.1 |