Crates / Compare / dashmap vs moka
Rust crates side by side · data Oct 24, 2026
dashmap vs moka
Short answerA map is not a cache: unbounded maps grow forever. Use moka for caching. By steady daily use, dashmap is bigger: 1,112,131 real downloads a day against 527,705 for moka (2.1x). 4,694 crates depend on dashmap and 743 on moka. dashmap last shipped 5 months ago, moka 2 months ago.
dashmap
Widely usedWidely used and steady.
4,694 crates depend on it; no release in the last 90 days, so its count is all steady use.
Blazing fast concurrent HashMap for Rust.
moka
EstablishedEstablished and steady.
743 crates depend on it; downloads don't spike on releases.
A fast and concurrent cache library inspired by Java Caffeine
dashmapmoka · 100% = that crate's normal quiet day, so a spike to 300% is triple its usual traffic
Every number, side by side
| Same window, same method | dashmap | moka |
|---|---|---|
| Real downloads a day | 1,112,131 | 527,705 |
| Crates that depend on it | 4,694 | 743 |
| Last release | 6.2.1, 5 months ago | 0.12.16, 2 months ago |
| Trend vs the field | -9% | -8% |
| Release-window share | 0.0% | 1.5% |
| Downloads in the window | 96,707,519 | 43,928,177 |
| All-time downloads | 423,420,242 | 146,809,731 |
| Versions published | 85 | 68 |
| License | MIT | (MIT OR Apache-2.0) AND Apache-2.0 |
| MSRV | 1.65 | 1.71.1 |
| First published | Aug 25, 2019 | Oct 22, 2020 |
Which to pick
- Pick dashmap if you need a concurrent HashMap.
- Pick moka if you need a cache: size limits, time-to-live and eviction.
- Bottom line: A map is not a cache: unbounded maps grow forever. Use moka for caching. (checked against each project's docs, Oct 24, 2026)
- Downloads tell you what is common, not what fits. Each crate's own description above says what it is for; when the jobs differ, pick by the job.
- When both fit, prefer the one more crates depend on (dashmap, 4,694 dependents): more eyes, more answered questions, and you may already have it in your tree.
- Check the release dates against your own pace: dashmap 5 months ago, moka 2 months ago.
Also in this space
Method
Real downloads = the median day with no release that day or the day before, from the crates.io API (Jul 27, 2026 to Oct 23, 2026). Raw crates.io counts include CI and bots and run high (why); the method is from our 90-day study. People search for this pair: Google suggests "dashmap vs moka".
Up next
Another comparison: Same method, same window. Widely used and steady vs established and gaining.dashmap vs papayaRead it next →Also worth your time