Decision Workspace
cfg-iif vs attr_alias vs cifg
Side-by-side comparison of Rust crates
50
cfg-iif
growingv0.2.8
A macro for defining `#[cfg]` `if-else` functions.
57
attr_alias
growingv0.1.5
Reduce attribute repetition with aliases
49
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 | 50 | 57 | 49 |
| Total Downloads | 177.4K | 136.1K | 4.8K |
| 30d Downloads | 205 | 20.1K | 6 |
| Dependents | 21 | 3 | 0 |
| Releases | 9 | 6 | 4 |
| Last Updated | 184d ago | 48d ago | 619d ago |
| Age | 4y 9m | 2y 2m | 1y 8m |
Health Breakdown
cfg-iif
Maintenance
9
Quality
17
Community
6
Popularity
6
Documentation
12
attr_alias
Maintenance
14
Quality
17
Community
8
Popularity
6
Documentation
12
cifg
Maintenance
10
Quality
20
Community
5
Popularity
4
Documentation
10
Technical Details
| cfg-iif | attr_alias | cifg | |
|---|---|---|---|
| Version | 0.2.8 | 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 | 15KB | 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 57/100, but none of the options score above 80.
- •cfg-iif has the most downloads (177.4K), suggesting wider adoption.
- •⚠ cifg has not been updated in over a year.
- •cfg-iif, attr_alias are pre-1.0 — API may change.