Install
lru
A LRU cache implementation
0.19.2Latest, 23 Nov 2026
149MDownloads, last 90 days
0Advisories on the latest
6Advisories, all versions
MITLicence
848Stars
4.5/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Potential use-after-free due to lack of panic safety in `LruCache::pop()` RUSTSEC-2026-0253 | Fixed in 0.18.2 | 12 May 2026 | |
| Low | `IterMut` violates Stacked Borrows by invalidating internal pointer GHSA-rhfx-m35p-ff5j | Fixed in 0.16.3 | 7 Jan 2026 |
| `IterMut` violates Stacked Borrows by invalidating internal pointer RUSTSEC-2026-0002 | Fixed in 0.16.3 | 7 Jan 2026 | |
| High | Use after free in lru crate CVE-2021-45720 | Fixed in 0.7.1 | 17 Jun 2022 |
| High | Use After Free in lru CVE-2021-45720 | Fixed in 0.7.1 | 7 Jan 2022 |
| Use after free in lru crate CVE-2021-45720 | Fixed in 0.7.1 | 21 Dec 2021 |
In the news
On Hacker News
- Sieve is simpler than LRU 287 points, 183 comments, 3 Jan 2024
- Cache Eviction: When Are Randomized Algorithms Better Than LRU? (2014) 235 points, 42 comments, 18 Feb 2019
- Cache eviction: when are randomized algorithms better than LRU? (2014) 192 points, 67 comments, 19 Apr 2017
- Linux Kernel: The multi-generational LRU 170 points, 38 comments, 19 Apr 2021
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.