v0.16.3 - 2026-01-07
- Fix Stacked Borrows violation in
IterMut.
v0.16.2 - 2025-10-14
- Upgrade hashbrown dependency to 0.16.0.
v0.16.1 - 2025-09-08
- Fix
Clonefor unbounded cache.
v0.16.0 - 2025-07-02
- Implement
Clonefor caches with custom hashers.
v0.15.0 - 2025-06-26
- Return bool from
promoteanddemoteto indicate whether key was found.
v0.14.0 - 2025-04-12
- Use
NonZeroUsize::MAXinstead ofunwrap(), and update MSRV to 1.70.0.
v0.13.0 - 2025-01-27
- Add
peek_mruandpop_mrumethods, upgrade dependency onhashbrownto 0.15.2, and update MSRV to 1.65.0.
v0.12.5 - 2024-10-30
- Upgrade hashbrown dependency to 0.15.
v0.12.4 - 2024-07-30
- Add methods that take a reference to the key that should be inserted.
v0.12.3 - 2024-02-24
- Add
get_key_value_mutmethod.
v0.12.2 - 2024-01-28
- Add
clonemethod.
v0.12.1 - 2023-11-21
- Add
get_key_valuemethod.
v0.12.0 - 2023-10-03
- Add lifetime specifier to
try_get_or_insert_mut. - Add
BuildHashertrait bound toDebugforLruCache.
v0.11.1 - 2023-09-05
- Add
try_get_or_insert_mutmethod.
v0.11.0 - 2023-07-11
- Update dependency on hashbrown to 0.14 and update MSRV to 1.64.0.
v0.10.1 - 2023-06-29
- Add
try_get_or_insertmethod.
v0.10.0 - 2023-03-04
- Remove
KeyReffrom the public API.
v0.9.0 - 2022-12-31
- Update dependency on hashbrown to 0.13.
- Change
LruCache.mapto hold a pointer, rather than ownedLruEntry.
v0.8.1 - 2022-10-01
- Add "caching" and "no-std" to list of categories.
v0.8.0 - 2022-09-11
- Use
NonZeroUsizefor LRU capacity instead of usize. - Add
get_or_insert_mutmethod which is similiar toget_or_insertbut returns a mutable reference instead of an immutable reference. - Add
LruCache::promoteandLruCache::demoteAPI to manipulate LRU order of the entry directly.
v0.7.8 - 2022-07-19
- Update dependency on hashbrown to 0.12.
v0.7.7 - 2022-06-14
- Use
FnOnceinstead ofFnfor trait bound offninget_or_insert.
v0.7.6 - 2022-05-25
- Add
pop_entrymethod.
v0.7.5 - 2022-04-04
- Add
pushmethod.
v0.7.4 - 2022-04-03
- Implement
IntoIteratortrait and fix lifetime bug inget_or_insert.
v0.7.3 - 2022-02-28
- Add
get_or_insertmethod.
v0.7.2 - 2021-12-28
- Explicitly implement Borrow for Box for non-nightly.
v0.7.1 - 2021-12-18
- Fix lifetime of iterators.
v0.7.0 - 2021-09-14
- Explicitly implement Borrow for String and Vec types for non-nightly.
v0.6.6 - 2021-07-28
- Update dependency on hashbrown to 0.11.2.
v0.6.5 - 2021-02-12
- Add
unbounded_with_hasherconstructor.
v0.6.4 - 2021-02-03
- Fix memory leak when keys contain heap allocated data and ensure send/sync bounds apply to all conforming hashers.
v0.6.3 - 2020-12-19
- Fix memory leak in
clearandresizemethods.
v0.6.2 - 2020-12-12
- Rename
optin_builtin_traitstoauto_traits.
v0.6.1 - 2020-11-02
- Update dependency on hashbrown to 0.9.
v0.6.0 - 2020-08-02
- Update dependency on hashbrown to 0.8.
v0.5.3 - 2020-07-06
- Fix bug that causes crash when putting an item into a zero-capacity cache.
v0.5.2 - 2020-06-17
- Fix nightly feature.
v0.5.1 - 2020-06-02
- Fix memory leak whereby old entries wouldn't be dropped when cache is full.
v0.5.0 - 2020-05-28
- Stop gating the
alloccrate behind thenightlyflag.
v0.4.5 - 2020-05-25
- Use
as_mut_ptrindropto fix memory leak.
v0.4.4 - 2020-05-19
- Use
mem::MaybeUninitfor key and value fields of nodes and not the nodes themselves.
v0.4.3 - 2019-12-10
- Add back import of alloc crate on nightly which was accidentally removed.
v0.4.2 - 2019-12-08
- Make hasbrown usage optional and add MSRV documentation.
v0.4.1 - 2019-11-26
- Use
mem::MaybeUninitinstead ofmem::uninitialized.
v0.4.0 - 2019-10-28
- Use
Borrowtrait incontainsandpopmethods.
v0.3.1 - 2019-10-08
- Implement
DebugforLruCache.
v0.3.0 - 2019-10-06
- Update the signature of the
peekmethods to use theBorrowtrait and add apeek_mutmethod.
v0.2.0 - 2019-09-27
- Release a new minor version because of an accidental breaking change in the previous release (#50).
v0.1.18 - 2019-09-25
- Add borrowed type support for get_mut.
v0.1.17 - 2019-08-21
- Return Option from put method which contains old value if it exists.
v0.1.16 - 2019-07-25
- Implement Borrow trait for KeyRef with nightly OIBIT feature.
v0.1.15 - 2019-04-13
- Make crate no_std compatible with nightly feature.
v0.1.14 - 2019-04-13
- Implement
IterMutto be able to get a mutable iterator for the cache.
v0.1.13 - 2019-03-12
- Bug fix to ensure that popped items are released.
v0.1.12 - 2019-03-04
- Replace standard HashMap with hashbrown HashMap.
v0.1.11 - 2018-12-10
- Implement
Iteratortrait for the cache.
v0.1.10 - 2018-11-07
- Add
peek_lrumethod to get the least recently used element.
v0.1.9 - 2018-10-30
- Add
with_hasherconstructor to allow callers to use a custom hash function.
v0.1.8 - 2018-08-19
- Add
pop_lruto remove least recently used element andunboundedconstructor.
v0.1.7 - 2018-01-22
- Implement
SendandSyncfor the cache.
v0.1.6 - 2018-01-15
- Add
resizemethod to dynamically resize the cache.
v0.1.5 - 2018-01-15
- Add
get_mutmethod to get a mutable reference from the cache.
v0.1.4 - 2017-02-19
- Add function to clear the contents of the cache.
v0.1.3 - 2017-01-02
- Create internal hashmap with specified capacity.
v0.1.2 - 2017-01-02
- Add
peekandcontainsfunctions.
v0.1.1 - 2016-12-31
- Fix documentation link in Cargo.toml.
v0.1.0 - 2016-12-31
- Initial release.