Decision Workspace
cfg-iif vs attr_alias vs cifg
Side-by-side comparison of Rust crates
51
cfg-iif
growingv0.2.9
A macro for defining `#[cfg]` `if-else` functions.
52
attr_alias
growingv0.1.5
Reduce attribute repetition with aliases
50
cifg
growingv1.0.3
A macro for defining #[cfg] if/else blocks; alternate to cfg-if.
Core Metrics
| cfg-iif | attr_alias | cifg | |
|---|---|---|---|
| Health Score | 51 | 52 | 50 |
| Total Downloads | 179.3K | 622.8K | 4.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 27 | 3 | 0 |
| Releases | 10 | 6 | 4 |
| Last Updated | 151d ago | 244d ago | 815d ago |
| Age | 5y 3m | 2y 9m | 2y 2m |
Health Breakdown
cfg-iif
Maintenance
10
Quality
17
Community
6
Popularity
6
Documentation
12
attr_alias
Maintenance
8
Quality
17
Community
8
Popularity
7
Documentation
12
cifg
Maintenance
10
Quality
21
Community
5
Popularity
4
Documentation
10
Technical Details
| cfg-iif | attr_alias | cifg | |
|---|---|---|---|
| Version | 0.2.9 | 0.1.5 | 1.0.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 1 |
| Crate Size | 17KB | 11KB | 8KB |
| Features | 1 | 1 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.60.0 | 1.70.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •attr_alias leads with a health score of 52/100, but none of the options score above 80.
- •⚠ cifg has not been updated in over a year.
- •cfg-iif, attr_alias are pre-1.0 — API may change.