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