Decision Workspace
const-builder vs const_struct vs bon
Side-by-side comparison of Rust crates
55
const-builder
growingv0.1.8
Derive macro for const-compatible compile-time checked builders.
55
const_struct
growingv0.6.6
macro that allows const structures to be passed as const generics
78
bon
stablev3.10.2
Next-gen compile-time-checked builder generator, named function's arguments, and more!
Core Metrics
| const-builder | const_struct | bon | |
|---|---|---|---|
| Health Score | 55 | 55 | 78 |
| Total Downloads | 2.4K | 14.6K | 64.8M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 9 | 67 | 10.5K |
| Releases | 9 | 20 | 51 |
| Last Updated | 74d ago | 173d ago | 7d ago |
| Age | 1y 2m | 2y 1m | 2y 3m |
Health Breakdown
const-builder
Maintenance
16
Quality
14
Community
9
Popularity
4
Documentation
12
const_struct
Maintenance
11
Quality
16
Community
8
Popularity
5
Documentation
15
bon
Maintenance
19
Quality
22
Community
17
Popularity
8
Documentation
12
Technical Details
| const-builder | const_struct | bon | |
|---|---|---|---|
| Version | 0.1.8 | 0.6.6 | 3.10.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT/Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 3 | 5 |
| Crate Size | 30KB | 13KB | 67KB |
| Features | 0 | 1 | 7 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | 1.88 | 1.80.0 | 1.88.0 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •bon leads with a health score of 78/100, but none of the options score above 80.
- •bon is depended on by 10.5K crates — strongest ecosystem trust.
- •const-builder, const_struct are pre-1.0 — API may change.