Decision Workspace
type-lib vs bare-types vs nutype
Side-by-side comparison of Rust crates
54
type-lib
experimentalv1.0.0
Validation and type constraint library. Declare domain types with invariants enforced at construction. Parse-dont-validate pattern as a first-class citizen. Zero-overhead wrappers with derive macros.
49
bare-types
experimentalv0.3.0
A zero-cost foundation for type-safe domain modeling in Rust. Implements the 'Parse, don't validate' philosophy to eliminate primitive obsession and ensure data integrity at the system boundary.
67
nutype
growingv0.7.0
The newtype with guarantees.
Core Metrics
| type-lib | bare-types | nutype | |
|---|---|---|---|
| Health Score | 54 | 49 | 67 |
| Total Downloads | 43 | 190 | 3.9M |
| 30d Downloads | 0 | 0 | 378.8K |
| Dependents | 0 | 0 | 385 |
| Releases | 3 | 12 | 21 |
| Last Updated | 19d ago | 99d ago | 51d ago |
| Age | 19d | 4m | 3y 8m |
Health Breakdown
type-lib
Maintenance
13
Quality
18
Community
6
Popularity
2
Documentation
15
bare-types
Maintenance
14
Quality
11
Community
6
Popularity
3
Documentation
15
nutype
Maintenance
16
Quality
17
Community
13
Popularity
8
Documentation
13
Technical Details
| type-lib | bare-types | nutype | |
|---|---|---|---|
| Version | 1.0.0 | 0.3.0 | 0.7.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 5 | 4 |
| Crate Size | 66KB | 91KB | 13KB |
| Features | 4 | 7 | 9 |
| Yanked % | 0.0% | 25.0% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.75 | 1.94.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nutype leads with a health score of 67/100, but none of the options score above 80.
- •nutype is depended on by 385 crates — strongest ecosystem trust.
- •bare-types, nutype are pre-1.0 — API may change.