Decision Workspace
macro_rules_attribute vs macro_rules_attr vs optfield-lite
Side-by-side comparison of Rust crates
52
macro_rules_attribute
growingv0.2.2
Use declarative macros in attribute or derive position
53
macro_rules_attr
growingv0.1.3
Use declarative macros as proc_macro attributes. (`#[apply]` your `macro_rules!`)
36
optfield-lite
experimentalv0.1.0
A macro to generate a new struct with fields wrapped in Option.
Core Metrics
| macro_rules_attribute | macro_rules_attr | optfield-lite | |
|---|---|---|---|
| Health Score | 52 | 53 | 36 |
| Total Downloads | 22.6M | 13.2K | 716 |
| 30d Downloads | 3.1M | 1.0K | 3 |
| Dependents | 1.6K | 14 | 0 |
| Releases | 19 | 4 | 1 |
| Last Updated | 298d ago | 363d ago | 360d ago |
| Age | 6y 6m | 1y | 12m |
Health Breakdown
macro_rules_attribute
Maintenance
6
Quality
12
Community
14
Popularity
8
Documentation
12
macro_rules_attr
Maintenance
13
Quality
16
Community
9
Popularity
5
Documentation
10
optfield-lite
Maintenance
3
Quality
14
Community
6
Popularity
3
Documentation
10
Technical Details
| macro_rules_attribute | macro_rules_attr | optfield-lite | |
|---|---|---|---|
| Version | 0.2.2 | 0.1.3 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT OR Zlib | MIT | MIT |
| Dependencies | 5 | 2 | 1 |
| Crate Size | 15KB | 3KB | 2KB |
| Features | 3 | 1 | 0 |
| Yanked % | 10.5% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •macro_rules_attr leads with a health score of 53/100, but none of the options score above 80.
- •macro_rules_attribute has the most downloads (22.6M), suggesting wider adoption.
- •macro_rules_attribute is depended on by 1.6K crates — strongest ecosystem trust.