Decision Workspace
func_wrap vs macro_rules_attr vs fnerror
Side-by-side comparison of Rust crates
45
func_wrap
growingv0.1.3
Helper crate for procedural macro authors that wish to duplicate some received function inside its body, so as to be able to wrap with some prologue, epilogue, cache-ing, etc.
53
macro_rules_attr
growingv0.1.3
Use declarative macros as proc_macro attributes. (`#[apply]` your `macro_rules!`)
42
fnerror
experimentalv0.1.4
A proc-macro for generating error impls for functions.
Core Metrics
| func_wrap | macro_rules_attr | fnerror | |
|---|---|---|---|
| Health Score | 45 | 53 | 42 |
| Total Downloads | 1.8M | 13.2K | 1.1K |
| 30d Downloads | 66.4K | 927 | 6 |
| Dependents | 13 | 14 | 0 |
| Releases | 5 | 4 | 4 |
| Last Updated | 1951d ago | 363d ago | 186d ago |
| Age | 5y 5m | 1y | 6m |
Health Breakdown
func_wrap
Maintenance
3
Quality
15
Community
8
Popularity
7
Documentation
12
macro_rules_attr
Maintenance
13
Quality
16
Community
9
Popularity
5
Documentation
10
fnerror
Maintenance
10
Quality
15
Community
3
Popularity
4
Documentation
10
Technical Details
| func_wrap | macro_rules_attr | fnerror | |
|---|---|---|---|
| Version | 0.1.3 | 0.1.3 | 0.1.4 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Zlib OR MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 3 | 2 | 4 |
| Crate Size | 11KB | 3KB | 7KB |
| Features | 0 | 1 | 2 |
| Yanked % | 0.0% | 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.
- •func_wrap has the most downloads (1.8M), suggesting wider adoption.
- •⚠ func_wrap has not been updated in over a year.