Decision Workspace
set_slice vs get_set_macro vs str-macro
Side-by-side comparison of Rust crates
40
set_slice
growingv0.3.0
A macro for assigning values to slices
53
get_set_macro
stablev1.1.2
Procedural macro to generate customizable getters and setters in Rust
52
str-macro
growingv1.0.1
The str!() macro, similar to vec![] but for strings
Core Metrics
| set_slice | get_set_macro | str-macro | |
|---|---|---|---|
| Health Score | 40 | 53 | 52 |
| Total Downloads | 21.5K | 3.1K | 1.5M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 99 |
| Releases | 15 | 5 | 7 |
| Last Updated | 3006d ago | 528d ago | 359d ago |
| Age | 8y 2m | 1y 5m | 7y 5m |
Health Breakdown
set_slice
Maintenance
10
Quality
11
Community
6
Popularity
5
Documentation
8
get_set_macro
Maintenance
13
Quality
18
Community
5
Popularity
4
Documentation
13
str-macro
Maintenance
5
Quality
21
Community
10
Popularity
7
Documentation
9
Technical Details
| set_slice | get_set_macro | str-macro | |
|---|---|---|---|
| Version | 0.3.0 | 1.1.2 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 4 | 0 |
| Crate Size | 9KB | 11KB | 4KB |
| Features | 0 | 0 | 0 |
| Yanked % | 20.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •get_set_macro leads with a health score of 53/100, but none of the options score above 80.
- •str-macro has the most downloads (1.5M), suggesting wider adoption.
- •⚠ set_slice, get_set_macro have not been updated in over a year.
- •set_slice is pre-1.0 — API may change.