Decision Workspace
cifg vs attr_alias vs cfg-iif
Side-by-side comparison of Rust crates
49
cifg
growingv1.0.3
A macro for defining #[cfg] if/else blocks; alternate to cfg-if.
57
attr_alias
growingv0.1.5
Reduce attribute repetition with aliases
50
cfg-iif
growingv0.2.8
A macro for defining `#[cfg]` `if-else` functions.
Core Metrics
| cifg | attr_alias | cfg-iif | |
|---|---|---|---|
| Health Score | 49 | 57 | 50 |
| Total Downloads | 4.8K | 136.1K | 177.4K |
| 30d Downloads | 6 | 20.1K | 205 |
| Dependents | 0 | 3 | 21 |
| Releases | 4 | 6 | 9 |
| Last Updated | 619d ago | 48d ago | 184d ago |
| Age | 1y 8m | 2y 2m | 4y 9m |
Health Breakdown
cifg
Maintenance
10
Quality
20
Community
5
Popularity
4
Documentation
10
attr_alias
Maintenance
14
Quality
17
Community
8
Popularity
6
Documentation
12
cfg-iif
Maintenance
9
Quality
17
Community
6
Popularity
6
Documentation
12
Technical Details
| cifg | attr_alias | cfg-iif | |
|---|---|---|---|
| Version | 1.0.3 | 0.1.5 | 0.2.8 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 0 | 0 |
| Crate Size | 8KB | 11KB | 15KB |
| Features | 1 | 1 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.70.0 | 1.60.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.
- •attr_alias, cfg-iif are pre-1.0 — API may change.