Decision Workspace
diesel-enum-number vs diesel-derive-enum vs use-pg-enum
Side-by-side comparison of Rust crates
51
diesel-enum-number
experimentalv0.1.5
Attribute macro to allow diesel to use number based enums in postgres
50
diesel-derive-enum
growingv2.1.0
Derive diesel boilerplate for using enums in databases
46
use-pg-enum
experimentalv0.1.0
PostgreSQL enum type primitives for RustUse
Core Metrics
| diesel-enum-number | diesel-derive-enum | use-pg-enum | |
|---|---|---|---|
| Health Score | 51 | 50 | 46 |
| Total Downloads | 1.4K | 5.9M | 155 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 594 | 1 |
| Releases | 4 | 19 | 1 |
| Last Updated | 211d ago | 563d ago | 133d ago |
| Age | 7m | 8y 9m | 4m |
Health Breakdown
diesel-enum-number
Maintenance
16
Quality
14
Community
5
Popularity
4
Documentation
12
diesel-derive-enum
Maintenance
4
Quality
17
Community
11
Popularity
8
Documentation
10
use-pg-enum
Maintenance
7
Quality
14
Community
7
Popularity
3
Documentation
15
Technical Details
| diesel-enum-number | diesel-derive-enum | use-pg-enum | |
|---|---|---|---|
| Version | 0.1.5 | 2.1.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 4 | 2 |
| Crate Size | 7KB | 13KB | 3KB |
| Features | 0 | 3 | 0 |
| Yanked % | 0.0% | 10.5% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | 1.86 | — | 1.95.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •diesel-enum-number leads with a health score of 51/100, but none of the options score above 80.
- •diesel-derive-enum has the most downloads (5.9M), suggesting wider adoption.
- •diesel-derive-enum is depended on by 594 crates — strongest ecosystem trust.
- •⚠ diesel-derive-enum has not been updated in over a year.
- •diesel-enum-number, use-pg-enum are pre-1.0 — API may change.