Decision Workspace
bare-types vs stateset-primitives vs type-lib
Side-by-side comparison of Rust crates
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.
64
stateset-primitives
growingv1.37.0
Strongly-typed primitive types for StateSet iCommerce
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.
Core Metrics
| bare-types | stateset-primitives | type-lib | |
|---|---|---|---|
| Health Score | 45 | 64 | 55 |
| Total Downloads | 395 | 2.9K | 72 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 145 | 0 |
| Releases | 12 | 37 | 3 |
| Last Updated | 215d ago | 1d ago | 135d ago |
| Age | 8m | 7m | 4m |
Health Breakdown
bare-types
Maintenance
10
Quality
11
Community
6
Popularity
3
Documentation
15
stateset-primitives
Maintenance
19
Quality
18
Community
11
Popularity
4
Documentation
12
type-lib
Maintenance
13
Quality
19
Community
6
Popularity
2
Documentation
15
Technical Details
| bare-types | stateset-primitives | type-lib | |
|---|---|---|---|
| Version | 0.3.0 | 1.37.0 | 1.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 5 | 10 | 3 |
| Crate Size | 91KB | 32KB | 66KB |
| Features | 7 | 5 | 4 |
| Yanked % | 25.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | 1.94.0 | 1.85 | 1.75 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •stateset-primitives leads with a health score of 64/100, but none of the options score above 80.
- •stateset-primitives is depended on by 145 crates — strongest ecosystem trust.
- •bare-types is pre-1.0 — API may change.