Decision Workspace
const-builder vs const_struct vs bon
Side-by-side comparison of Rust crates
58
const-builder
experimentalv0.1.6
Derive macro for const-compatible compile-time checked builders.
50
const_struct
growingv0.6.2
macro that allows const structures to be passed as const generics
76
bon
stablev3.9.1
Next-gen compile-time-checked builder generator, named function's arguments, and more!
Core Metrics
| const-builder | const_struct | bon | |
|---|---|---|---|
| Health Score | 58 | 50 | 76 |
| Total Downloads | 2.1K | 13.6K | 26.3M |
| 30d Downloads | 87 | 37 | 4.5M |
| Dependents | 8 | 2 | 4.8K |
| Releases | 7 | 16 | 46 |
| Last Updated | today | 221d ago | 14d ago |
| Age | 8m | 1y 7m | 1y 9m |
Health Breakdown
const-builder
Maintenance
20
Quality
13
Community
9
Popularity
4
Documentation
12
const_struct
Maintenance
10
Quality
16
Community
4
Popularity
5
Documentation
15
bon
Maintenance
18
Quality
21
Community
17
Popularity
8
Documentation
12
Technical Details
| const-builder | const_struct | bon | |
|---|---|---|---|
| Version | 0.1.6 | 0.6.2 | 3.9.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT/Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 3 | 6 |
| Crate Size | 25KB | 7KB | 67KB |
| Features | 0 | 1 | 7 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | 1.80.0 | 1.59.0 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •bon leads with a health score of 76/100, but none of the options score above 80.
- •bon is depended on by 4.8K crates — strongest ecosystem trust.
- •const-builder, const_struct are pre-1.0 — API may change.