Crates / Compare / tokio-postgres vs diesel
Rust crates side by side · data Oct 27, 2026
tokio-postgres vs diesel
Short answerBy steady daily use, tokio-postgres is bigger: 243,640 real downloads a day against 107,307 for diesel (2.3x). 847 crates depend on tokio-postgres and 667 on diesel. tokio-postgres last shipped 5 months ago, diesel 20 days ago.
tokio-postgres
EstablishedEstablished and gaining.
847 crates depend on it; no release in the last 90 days, so its count is all steady use.
A native, asynchronous PostgreSQL client
diesel
EstablishedEstablished and gaining.
667 crates depend on it; downloads don't spike on releases.
A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL
tokio-postgresdiesel · 100% = that crate's normal quiet day, so a spike to 300% is triple its usual traffic
How they relate
- Often used together: 1 tracked crate depend on both (rust_decimal). They are not always either/or.
Every number, side by side
| Same window, same method | tokio-postgres | diesel |
|---|---|---|
| Real downloads a day | 243,640 | 107,307 |
| Crates that depend on it | 847 | 667 |
| Last release | 0.7.18, 5 months ago | 2.3.14, 20 days ago |
| Trend vs the field | +11% | +19% |
| Release-window share | 0.0% | 6.6% |
| Downloads in the window | 22,753,282 | 10,352,470 |
| All-time downloads | 80,107,616 | 42,292,707 |
| Versions published | 38 | 99 |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| MSRV | 1.85 | 1.86.0 |
| First published | Dec 26, 2016 | Nov 29, 2015 |
Which to pick
- 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 (tokio-postgres, 847 dependents): more eyes, more answered questions, and you may already have it in your tree.
- Check the release dates against your own pace: tokio-postgres 5 months ago, diesel 20 days 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 30, 2026 to Oct 26, 2026). Raw crates.io counts include CI and bots and run high (why); the method is from our 90-day study.
Up next
Another comparison: Same method, same window. Widely used and gaining vs established and gaining.sqlx vs dieselRead it next →Also worth your time
Art: Nicholas Roerich, Nag Lake (1925). Public domain, via Wikimedia Commons.
