Debian Codegraph @

debian/rust-vendor/hashbrown-0.14.5/CHANGELOG.md

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