Decision Workspace
type-state-builder vs bon vs derive_builder
Side-by-side comparison of Rust crates
53
type-state-builder
experimentalv0.5.1
Type-state builder pattern derive macro with compile-time safety and enhanced ergonomics.
76
bon
stablev3.9.1
Next-gen compile-time-checked builder generator, named function's arguments, and more!
60
derive_builder
growingv0.20.2
Rust macro to automatically implement the builder pattern for arbitrary structs.
Core Metrics
| type-state-builder | bon | derive_builder | |
|---|---|---|---|
| Health Score | 53 | 76 | 60 |
| Total Downloads | 3.5K | 26.3M | 119.0M |
| 30d Downloads | 78 | 4.6M | 11.2M |
| Dependents | 0 | 4.8K | 13.0K |
| Releases | 10 | 46 | 34 |
| Last Updated | 101d ago | 14d ago | 535d ago |
| Age | 8m | 1y 9m | 9y 7m |
Health Breakdown
type-state-builder
Maintenance
14
Quality
14
Community
6
Popularity
4
Documentation
15
bon
Maintenance
18
Quality
21
Community
17
Popularity
8
Documentation
12
derive_builder
Maintenance
7
Quality
16
Community
17
Popularity
8
Documentation
12
Technical Details
| type-state-builder | bon | derive_builder | |
|---|---|---|---|
| Version | 0.5.1 | 3.9.1 | 0.20.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 6 | 6 | 5 |
| Crate Size | 144KB | 67KB | 37KB |
| Features | 2 | 7 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.70.0 | 1.59.0 | — |
| Owners | 1 | 2 | 2 |
Links
Quick Verdict
- •bon leads with a health score of 76/100, but none of the options score above 80.
- •derive_builder has the most downloads (119.0M), suggesting wider adoption.
- •derive_builder is depended on by 13.0K crates — strongest ecosystem trust.
- •⚠ derive_builder has not been updated in over a year.
- •type-state-builder, derive_builder are pre-1.0 — API may change.