Decision Workspace
add_getters_setters vs getset vs get_set_macro
Side-by-side comparison of Rust crates
47
add_getters_setters
growingv1.1.2
Makes it much easier to add getters and setters for fields of structures. Done by simply just adding some attributes to the struct and fields
56
getset
growingv0.1.7
Getset, we're ready to go! A procedural macro for generating the most basic getters and setters on fields.
53
get_set_macro
stablev1.1.2
Procedural macro to generate customizable getters and setters in Rust
Core Metrics
| add_getters_setters | getset | get_set_macro | |
|---|---|---|---|
| Health Score | 47 | 56 | 53 |
| Total Downloads | 58.3K | 81.4M | 3.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 9 | 4.8K | 0 |
| Releases | 12 | 17 | 5 |
| Last Updated | 2450d ago | 121d ago | 528d ago |
| Age | 6y 9m | 9y 4m | 1y 5m |
Health Breakdown
add_getters_setters
Maintenance
4
Quality
20
Community
8
Popularity
6
Documentation
9
getset
Maintenance
10
Quality
15
Community
14
Popularity
8
Documentation
9
get_set_macro
Maintenance
13
Quality
18
Community
5
Popularity
4
Documentation
13
Technical Details
| add_getters_setters | getset | get_set_macro | |
|---|---|---|---|
| Version | 1.1.2 | 0.1.7 | 1.1.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 3 | 4 |
| Crate Size | 6KB | 11KB | 11KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •getset leads with a health score of 56/100, but none of the options score above 80.
- •getset is depended on by 4.8K crates — strongest ecosystem trust.
- •⚠ add_getters_setters, get_set_macro have not been updated in over a year.
- •getset is pre-1.0 — API may change.