Decision Workspace
add_getters_setters vs get_set_macro vs getset
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
53
get_set_macro
growingv1.1.2
Procedural macro to generate customizable getters and setters in Rust
51
getset
growingv0.1.6
Getset, we're ready to go! A procedural macro for generating the most basic getters and setters on fields.
Core Metrics
| add_getters_setters | get_set_macro | getset | |
|---|---|---|---|
| Health Score | 47 | 53 | 51 |
| Total Downloads | 54.7K | 3.0K | 43.1M |
| 30d Downloads | 664 | 23 | 4.8M |
| Dependents | 9 | 0 | 3.9K |
| Releases | 12 | 5 | 16 |
| Last Updated | 2254d ago | 332d ago | 283d ago |
| Age | 6y 3m | 11m | 8y 10m |
Health Breakdown
add_getters_setters
Maintenance
4
Quality
20
Community
8
Popularity
6
Documentation
9
get_set_macro
Maintenance
14
Quality
17
Community
5
Popularity
4
Documentation
13
getset
Maintenance
6
Quality
14
Community
14
Popularity
8
Documentation
9
Technical Details
| add_getters_setters | get_set_macro | getset | |
|---|---|---|---|
| Version | 1.1.2 | 1.1.2 | 0.1.6 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 4 | 4 |
| Crate Size | 6KB | 11KB | 10KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 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.
- •getset has the most downloads (43.1M), suggesting wider adoption.
- •getset is depended on by 3.9K crates — strongest ecosystem trust.
- •⚠ add_getters_setters has not been updated in over a year.
- •getset is pre-1.0 — API may change.