Decision Workspace
type-lib vs peer-pressure vs bare-types
Side-by-side comparison of Rust crates
55
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.
52
peer-pressure
experimentalv0.1.1
Stupidly simple validation library
45
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.
Core Metrics
| type-lib | peer-pressure | bare-types | |
|---|---|---|---|
| Health Score | 55 | 52 | 45 |
| Total Downloads | 72 | 20 | 395 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 3 | 2 | 12 |
| Last Updated | 135d ago | 9d ago | 215d ago |
| Age | 4m | 9d | 8m |
Health Breakdown
type-lib
Maintenance
13
Quality
19
Community
6
Popularity
2
Documentation
15
peer-pressure
Maintenance
13
Quality
16
Community
6
Popularity
2
Documentation
15
bare-types
Maintenance
10
Quality
11
Community
6
Popularity
3
Documentation
15
Technical Details
| type-lib | peer-pressure | bare-types | |
|---|---|---|---|
| Version | 1.0.0 | 0.1.1 | 0.3.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 2 | 5 |
| Crate Size | 66KB | 17KB | 91KB |
| Features | 4 | 3 | 7 |
| Yanked % | 0.0% | 0.0% | 25.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.75 | 1.85 | 1.94.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •type-lib leads with a health score of 55/100, but none of the options score above 80.
- •bare-types has the most downloads (395), suggesting wider adoption.
- •peer-pressure, bare-types are pre-1.0 — API may change.