lru
A LRU cache implementation
0.18.2
318M downloads/mo
#345 most downloaded on crates.io
jeromefroe/lru-rs
What this package is like to depend on
Last release 20 days ago
03 Aug 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 67 of 67 stable releases
6 versions withdrawn
withdrawn after publishing
10 years old
73 releases · first in 2016
8 releases in the last 12 months
see the full history below
Release timeline
73 releases · Dec 2016 to Aug 2026
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 60 of 73-
0.18.203 Aug 2026 -
0.18.109 Jul 2026 -
0.18.027 Apr 2026 -
0.17.015 Apr 2026 -
0.16.413 Apr 2026 -
0.16.307 Jan 2026 -
0.16.214 Oct 2025 -
0.16.109 Sep 2025 -
0.16.003 Jul 2025 -
0.15.027 Jun 2025 -
0.14.012 Apr 2025 -
0.13.028 Jan 2025Release notes
Open source →- Add
peek_mruandpop_mrumethods, upgrade dependency onhashbrownto 0.15.2, and update MSRV to 1.65.0.
- Add
-
0.12.507 Oct 2024 -
0.12.431 Jul 2024 -
0.12.324 Feb 2024 -
0.12.228 Jan 2024 -
0.12.122 Nov 2023 -
0.12.004 Oct 2023Release notes
Open source →- Add lifetime specifier to
try_get_or_insert_mut. - Add
BuildHashertrait bound toDebugforLruCache.
- Add lifetime specifier to
-
0.11.106 Sep 2023 -
0.11.011 Jul 2023 -
0.10.130 Jun 2023 -
0.10.004 Mar 2023 -
0.9.031 Dec 2022Release notes
Open source →- Update dependency on hashbrown to 0.13.
- Change
LruCache.mapto hold a pointer, rather than ownedLruEntry.
-
0.8.101 Oct 2022 -
0.8.011 Sep 2022Release notes
Open source →- 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.
- Use
-
0.7.819 Jul 2022 -
0.7.714 Jun 2022 -
0.7.626 May 2022 -
0.7.504 Apr 2022 -
0.7.404 Apr 2022 -
0.7.301 Mar 2022 withdrawn -
0.7.228 Dec 2021 -
0.7.118 Dec 2021 -
0.7.005 Oct 2021 -
0.6.629 Jul 2021 -
0.6.512 Feb 2021 -
0.6.404 Feb 2021Release notes
Open source →- Fix memory leak when keys contain heap allocated data and ensure send/sync bounds apply to all conforming hashers.
-
0.6.319 Dec 2020 -
0.6.212 Dec 2020 -
0.6.102 Nov 2020 -
0.6.002 Aug 2020 -
0.5.306 Jul 2020Release notes
Open source →- Fix bug that causes crash when putting an item into a zero-capacity cache.
-
0.5.217 Jun 2020 -
0.5.102 Jun 2020Release notes
Open source →- Fix memory leak whereby old entries wouldn't be dropped when cache is full.
-
0.5.028 May 2020 withdrawn -
0.4.525 May 2020 withdrawn -
0.4.419 May 2020 withdrawnRelease notes
Open source →- Use
mem::MaybeUninitfor key and value fields of nodes and not the nodes themselves.
- Use
-
0.4.311 Dec 2019Release notes
Open source →- Add back import of alloc crate on nightly which was accidentally removed.
-
0.4.209 Dec 2019 withdrawn -
0.4.126 Nov 2019 -
0.4.028 Oct 2019 -
0.3.108 Oct 2019 -
0.3.006 Oct 2019Release notes
Open source →- Update the signature of the
peekmethods to use theBorrowtrait and add apeek_mutmethod.
- Update the signature of the
-
0.2.027 Sep 2019Release notes
Open source →- Release a new minor version because of an accidental breaking change in the previous release (#50).
-
0.1.1826 Sep 2019 withdrawn -
0.1.1721 Aug 2019 -
0.1.1625 Jul 2019 -
0.1.1513 Apr 2019 -
0.1.1413 Apr 2019 -
0.1.1312 Mar 2019