lru-tokens
v0.1.0 ExperimentalLRU cache where eviction is weighted by token count, not entry count. Bound a prompt cache by tokens (or any other size unit) instead of N entries. Zero deps.
Quick Verdict
- โActively maintained (updated 58d ago)
- !Pre-1.0: API may have breaking changes
- โTiny footprint (8KB, 0 deps)
- โPermissive license (MIT OR Apache-2.0)
Security
Deep Insights
4 downloads in the last 30 days, down 69% from the previous period. May indicate migration to alternatives.
The primary maintainer publishes 176 crates. This suggests deep Rust expertise and long-term commitment to the ecosystem.
lru-tokens has no external dependencies โ minimal supply chain risk and fast compile times.
At 8KB, lru-tokens is lightweight. Small crate size correlates with focused, well-scoped functionality.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata