Crate features / lru
Feature flags · lru 0.19.0 · from crates.io 2026-10-24
lru features: what each one does, and the line to copy
Short answerlru 0.19.0 has 1 feature. By default it turns on hashbrown; add default-features = false to start from nothing. It needs Rust 1.85.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
nightly | hashbrown, hashbrown/nightly |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version lru declares (rust-version), and the release that changed it:
- 0.16.0 (2025-07-03): Rust 1.70.0
- 0.17.0 (2026-04-15): Rust 1.85.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p lru --precise <version>, or use resolver 3, which picks compatible versions for you.
More on lru
Real downloads, dependents and alternatives: lru crate data (1.2M real downloads a day, 1,543 dependents).
Security record: lru advisories.
docs.rs feature list · crates.io · license MIT · edition not set
Up next
Before you depend on itlru crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?