Decision Workspace
unroll_range vs loop-code vs dry
Side-by-side comparison of Rust crates
37
unroll_range
growingv0.2.0
Repeats a block of code for each number in a specified range.
39
loop-code
growingv0.5.2
Code repeating macro
44
dry
growingv0.1.1
Rust macros for idiomatic deduplication of code. Use whenever `macro_rules!` are too powerful and clunky.
Core Metrics
| unroll_range | loop-code | dry | |
|---|---|---|---|
| Health Score | 37 | 39 | 44 |
| Total Downloads | 2.6K | 83.8K | 13.5K |
| 30d Downloads | 4 | 58.0K | 281 |
| Dependents | 0 | 7 | 32 |
| Releases | 2 | 3 | 2 |
| Last Updated | 856d ago | 1155d ago | 1406d ago |
| Age | 2y 4m | 3y 2m | 3y 10m |
Health Breakdown
unroll_range
Maintenance
4
Quality
16
Community
3
Popularity
4
Documentation
10
loop-code
Maintenance
4
Quality
9
Community
7
Popularity
6
Documentation
13
dry
Maintenance
4
Quality
16
Community
9
Popularity
5
Documentation
10
Technical Details
| unroll_range | loop-code | dry | |
|---|---|---|---|
| Version | 0.2.0 | 0.5.2 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 3 | 1 |
| Crate Size | 2KB | 7KB | 12KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 66.7% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dry leads with a health score of 44/100, but none of the options score above 80.
- •loop-code has the most downloads (83.8K), suggesting wider adoption.
- •⚠ unroll_range, loop-code, dry have not been updated in over a year.