Decision Workspace
libpq vs postgres-types vs tokio-postgres
Side-by-side comparison of Rust crates
60
libpq
stablev6.0.1
Safe binding for libpq
67
postgres-types
growingv0.2.12
Conversions between Rust and Postgres values
66
tokio-postgres
growingv0.7.16
A native, asynchronous PostgreSQL client
Core Metrics
| libpq | postgres-types | tokio-postgres | |
|---|---|---|---|
| Health Score | 60 | 67 | 66 |
| Total Downloads | 1.1M | 41.7M | 39.2M |
| 30d Downloads | 87.6K | 3.2M | 3.1M |
| Dependents | 45 | 1.9K | 5.4K |
| Releases | 39 | 19 | 36 |
| Last Updated | 149d ago | 72d ago | 72d ago |
| Age | 5y 11m | 6y 5m | 9y 3m |
Health Breakdown
libpq
Maintenance
12
Quality
21
Community
10
Popularity
7
Documentation
10
postgres-types
Maintenance
15
Quality
16
Community
16
Popularity
8
Documentation
12
tokio-postgres
Maintenance
15
Quality
15
Community
16
Popularity
8
Documentation
12
Technical Details
| libpq | postgres-types | tokio-postgres | |
|---|---|---|---|
| Version | 6.0.1 | 0.2.12 | 0.7.16 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 7 | 24 | 38 |
| Crate Size | 64KB | 40KB | 97KB |
| Features | 9 | 21 | 22 |
| Yanked % | 2.6% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.81 | 1.81 |
| Owners | 1 | 2 | 2 |
Links
Quick Verdict
- •postgres-types leads with a health score of 67/100, but none of the options score above 80.
- •tokio-postgres is depended on by 5.4K crates — strongest ecosystem trust.
- •postgres-types, tokio-postgres are pre-1.0 — API may change.