Debian Codegraph @

debian/rust-vendor/lru/CHANGELOG.md

raw
1 # Changelog
2
3 ## [v0.16.4](https://github.com/jeromefroe/lru-rs/tree/0.16.4) - 2026-04-13
4
5 - Add `get_or_insert_with_key` and variants.
6
7 ## [v0.16.3](https://github.com/jeromefroe/lru-rs/tree/0.16.3) - 2026-01-07
8
9 - Fix Stacked Borrows violation in `IterMut`.
10
11 ## [v0.16.2](https://github.com/jeromefroe/lru-rs/tree/0.16.2) - 2025-10-14
12
13 - Upgrade hashbrown dependency to 0.16.0.
14
15 ## [v0.16.1](https://github.com/jeromefroe/lru-rs/tree/0.16.1) - 2025-09-08
16
17 - Fix `Clone` for unbounded cache.
18
19 ## [v0.16.0](https://github.com/jeromefroe/lru-rs/tree/0.16.0) - 2025-07-02
20
21 - Implement `Clone` for caches with custom hashers.
22
23 ## [v0.15.0](https://github.com/jeromefroe/lru-rs/tree/0.15.0) - 2025-06-26
24
25 - Return bool from `promote` and `demote` to indicate whether key was found.
26
27 ## [v0.14.0](https://github.com/jeromefroe/lru-rs/tree/0.14.0) - 2025-04-12
28
29 - Use `NonZeroUsize::MAX` instead of `unwrap()`, and update MSRV to 1.70.0.
30
31 ## [v0.13.0](https://github.com/jeromefroe/lru-rs/tree/0.13.0) - 2025-01-27
32
33 - Add `peek_mru` and `pop_mru` methods, upgrade dependency on `hashbrown` to 0.15.2, and update MSRV to 1.65.0.
34
35 ## [v0.12.5](https://github.com/jeromefroe/lru-rs/tree/0.12.5) - 2024-10-30
36
37 - Upgrade hashbrown dependency to 0.15.
38
39 ## [v0.12.4](https://github.com/jeromefroe/lru-rs/tree/0.12.4) - 2024-07-30
40
41 - Add methods that take a reference to the key that should be inserted.
42
43 ## [v0.12.3](https://github.com/jeromefroe/lru-rs/tree/0.12.3) - 2024-02-24
44
45 - Add `get_key_value_mut` method.
46
47 ## [v0.12.2](https://github.com/jeromefroe/lru-rs/tree/0.12.2) - 2024-01-28
48
49 - Add `clone` method.
50
51 ## [v0.12.1](https://github.com/jeromefroe/lru-rs/tree/0.12.1) - 2023-11-21
52
53 - Add `get_key_value` method.
54
55 ## [v0.12.0](https://github.com/jeromefroe/lru-rs/tree/0.12.0) - 2023-10-03
56
57 - Add lifetime specifier to `try_get_or_insert_mut`.
58 - Add `BuildHasher` trait bound to `Debug` for `LruCache`.
59
60 ## [v0.11.1](https://github.com/jeromefroe/lru-rs/tree/0.11.1) - 2023-09-05
61
62 - Add `try_get_or_insert_mut` method.
63
64 ## [v0.11.0](https://github.com/jeromefroe/lru-rs/tree/0.11.0) - 2023-07-11
65
66 - Update dependency on hashbrown to 0.14 and update MSRV to 1.64.0.
67
68 ## [v0.10.1](https://github.com/jeromefroe/lru-rs/tree/0.10.1) - 2023-06-29
69
70 - Add `try_get_or_insert` method.
71
72 ## [v0.10.0](https://github.com/jeromefroe/lru-rs/tree/0.10.0) - 2023-03-04
73
74 - Remove `KeyRef` from the public API.
75
76 ## [v0.9.0](https://github.com/jeromefroe/lru-rs/tree/0.9.0) - 2022-12-31
77
78 - Update dependency on hashbrown to 0.13.
79 - Change `LruCache.map` to hold a pointer, rather than owned `LruEntry`.
80
81 ## [v0.8.1](https://github.com/jeromefroe/lru-rs/tree/0.8.1) - 2022-10-01
82
83 - Add "caching" and "no-std" to list of categories.
84
85 ## [v0.8.0](https://github.com/jeromefroe/lru-rs/tree/0.8.0) - 2022-09-11
86
87 - Use `NonZeroUsize` for LRU capacity instead of usize.
88 - Add `get_or_insert_mut` method which is similiar to `get_or_insert` but returns a mutable
89 reference instead of an immutable reference.
90 - Add `LruCache::promote` and `LruCache::demote` API to manipulate LRU order of the entry directly.
91
92 ## [v0.7.8](https://github.com/jeromefroe/lru-rs/tree/0.7.8) - 2022-07-19
93
94 - Update dependency on hashbrown to 0.12.
95
96 ## [v0.7.7](https://github.com/jeromefroe/lru-rs/tree/0.7.7) - 2022-06-14
97
98 - Use `FnOnce` instead of `Fn` for trait bound of `fn` in `get_or_insert`.
99
100 ## [v0.7.6](https://github.com/jeromefroe/lru-rs/tree/0.7.6) - 2022-05-25
101
102 - Add `pop_entry` method.
103
104 ## [v0.7.5](https://github.com/jeromefroe/lru-rs/tree/0.7.5) - 2022-04-04
105
106 - Add `push` method.
107
108 ## [v0.7.4](https://github.com/jeromefroe/lru-rs/tree/0.7.4) - 2022-04-03
109
110 - Implement `IntoIterator` trait and fix lifetime bug in `get_or_insert`.
111
112 ## [v0.7.3](https://github.com/jeromefroe/lru-rs/tree/0.7.3) - 2022-02-28
113
114 - Add `get_or_insert` method.
115
116 ## [v0.7.2](https://github.com/jeromefroe/lru-rs/tree/0.7.2) - 2021-12-28
117
118 - Explicitly implement Borrow for Box for non-nightly.
119
120 ## [v0.7.1](https://github.com/jeromefroe/lru-rs/tree/0.7.1) - 2021-12-18
121
122 - Fix lifetime of iterators.
123
124 ## [v0.7.0](https://github.com/jeromefroe/lru-rs/tree/0.7.0) - 2021-09-14
125
126 - Explicitly implement Borrow for String and Vec types for non-nightly.
127
128 ## [v0.6.6](https://github.com/jeromefroe/lru-rs/tree/0.6.6) - 2021-07-28
129
130 - Update dependency on hashbrown to 0.11.2.
131
132 ## [v0.6.5](https://github.com/jeromefroe/lru-rs/tree/0.6.5) - 2021-02-12
133
134 - Add `unbounded_with_hasher` constructor.
135
136 ## [v0.6.4](https://github.com/jeromefroe/lru-rs/tree/0.6.4) - 2021-02-03
137
138 - Fix memory leak when keys contain heap allocated data and ensure send/sync bounds apply to
139 all conforming hashers.
140
141 ## [v0.6.3](https://github.com/jeromefroe/lru-rs/tree/0.6.3) - 2020-12-19
142
143 - Fix memory leak in `clear` and `resize` methods.
144
145 ## [v0.6.2](https://github.com/jeromefroe/lru-rs/tree/0.6.2) - 2020-12-12
146
147 - Rename `optin_builtin_traits` to `auto_traits`.
148
149 ## [v0.6.1](https://github.com/jeromefroe/lru-rs/tree/0.6.1) - 2020-11-02
150
151 - Update dependency on hashbrown to 0.9.
152
153 ## [v0.6.0](https://github.com/jeromefroe/lru-rs/tree/0.6.0) - 2020-08-02
154
155 - Update dependency on hashbrown to 0.8.
156
157 ## [v0.5.3](https://github.com/jeromefroe/lru-rs/tree/0.5.3) - 2020-07-06
158
159 - Fix bug that causes crash when putting an item into a zero-capacity cache.
160
161 ## [v0.5.2](https://github.com/jeromefroe/lru-rs/tree/0.5.2) - 2020-06-17
162
163 - Fix nightly feature.
164
165 ## [v0.5.1](https://github.com/jeromefroe/lru-rs/tree/0.5.1) - 2020-06-02
166
167 - Fix memory leak whereby old entries wouldn't be dropped when cache is full.
168
169 ## [v0.5.0](https://github.com/jeromefroe/lru-rs/tree/0.5.0) - 2020-05-28
170
171 - Stop gating the `alloc` crate behind the `nightly` flag.
172
173 ## [v0.4.5](https://github.com/jeromefroe/lru-rs/tree/0.4.5) - 2020-05-25
174
175 - Use `as_mut_ptr` in `drop` to fix memory leak.
176
177 ## [v0.4.4](https://github.com/jeromefroe/lru-rs/tree/0.4.4) - 2020-05-19
178
179 - Use `mem::MaybeUninit` for key and value fields of nodes and not the nodes themselves.
180
181 ## [v0.4.3](https://github.com/jeromefroe/lru-rs/tree/0.4.3) - 2019-12-10
182
183 - Add back import of alloc crate on nightly which was accidentally removed.
184
185 ## [v0.4.2](https://github.com/jeromefroe/lru-rs/tree/0.4.2) - 2019-12-08
186
187 - Make hasbrown usage optional and add MSRV documentation.
188
189 ## [v0.4.1](https://github.com/jeromefroe/lru-rs/tree/0.4.1) - 2019-11-26
190
191 - Use `mem::MaybeUninit` instead of `mem::uninitialized`.
192
193 ## [v0.4.0](https://github.com/jeromefroe/lru-rs/tree/0.4.0) - 2019-10-28
194
195 - Use `Borrow` trait in `contains` and `pop` methods.
196
197 ## [v0.3.1](https://github.com/jeromefroe/lru-rs/tree/0.3.1) - 2019-10-08
198
199 - Implement `Debug` for `LruCache`.
200
201 ## [v0.3.0](https://github.com/jeromefroe/lru-rs/tree/0.3.0) - 2019-10-06
202
203 - Update the signature of the `peek` methods to use the `Borrow` trait and add a `peek_mut` method.
204
205 ## [v0.2.0](https://github.com/jeromefroe/lru-rs/tree/0.2.0) - 2019-09-27
206
207 - Release a new minor version because of an accidental breaking change in the previous release ([#50](https://github.com/jeromefroe/lru-rs/issues/50)).
208
209 ## [v0.1.18](https://github.com/jeromefroe/lru-rs/tree/0.1.18) - 2019-09-25
210
211 - Add borrowed type support for get_mut.
212
213 ## [v0.1.17](https://github.com/jeromefroe/lru-rs/tree/0.1.17) - 2019-08-21
214
215 - Return Option from put method which contains old value if it exists.
216
217 ## [v0.1.16](https://github.com/jeromefroe/lru-rs/tree/0.1.16) - 2019-07-25
218
219 - Implement Borrow trait for KeyRef with nightly OIBIT feature.
220
221 ## [v0.1.15](https://github.com/jeromefroe/lru-rs/tree/0.1.15) - 2019-04-13
222
223 - Make crate no_std compatible with nightly feature.
224
225 ## [v0.1.14](https://github.com/jeromefroe/lru-rs/tree/0.1.14) - 2019-04-13
226
227 - Implement `IterMut` to be able to get a mutable iterator for the cache.
228
229 ## [v0.1.13](https://github.com/jeromefroe/lru-rs/tree/0.1.13) - 2019-03-12
230
231 - Bug fix to ensure that popped items are released.
232
233 ## [v0.1.12](https://github.com/jeromefroe/lru-rs/tree/0.1.12) - 2019-03-04
234
235 - Replace standard HashMap with hashbrown HashMap.
236
237 ## [v0.1.11](https://github.com/jeromefroe/lru-rs/tree/0.1.11) - 2018-12-10
238
239 - Implement `Iterator` trait for the cache.
240
241 ## [v0.1.10](https://github.com/jeromefroe/lru-rs/tree/0.1.10) - 2018-11-07
242
243 - Add `peek_lru` method to get the least recently used element.
244
245 ## [v0.1.9](https://github.com/jeromefroe/lru-rs/tree/0.1.9) - 2018-10-30
246
247 - Add `with_hasher` constructor to allow callers to use a custom hash function.
248
249 ## [v0.1.8](https://github.com/jeromefroe/lru-rs/tree/0.1.8) - 2018-08-19
250
251 - Add `pop_lru` to remove least recently used element and `unbounded` constructor.
252
253 ## [v0.1.7](https://github.com/jeromefroe/lru-rs/tree/0.1.7) - 2018-01-22
254
255 - Implement `Send` and `Sync` for the cache.
256
257 ## [v0.1.6](https://github.com/jeromefroe/lru-rs/tree/0.1.6) - 2018-01-15
258
259 - Add `resize` method to dynamically resize the cache.
260
261 ## [v0.1.5](https://github.com/jeromefroe/lru-rs/tree/0.1.5) - 2018-01-15
262
263 - Add `get_mut` method to get a mutable reference from the cache.
264
265 ## [v0.1.4](https://github.com/jeromefroe/lru-rs/tree/0.1.4) - 2017-02-19
266
267 - Add function to clear the contents of the cache.
268
269 ## [v0.1.3](https://github.com/jeromefroe/lru-rs/tree/0.1.3) - 2017-01-02
270
271 - Create internal hashmap with specified capacity.
272
273 ## [v0.1.2](https://github.com/jeromefroe/lru-rs/tree/0.1.2) - 2017-01-02
274
275 - Add `peek` and `contains` functions.
276
277 ## [v0.1.1](https://github.com/jeromefroe/lru-rs/tree/0.1.1) - 2016-12-31
278
279 - Fix documentation link in Cargo.toml.
280
281 ## [v0.1.0](https://github.com/jeromefroe/lru-rs/tree/0.1.0) - 2016-12-31
282
283 - Initial release.