Decision Workspace
cfg-vis vs attr_alias vs cfg-iif
Side-by-side comparison of Rust crates
36
cfg-vis
growingv0.3.0
A macro to support `#[cfg()]` on visibility.
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
| cfg-vis | attr_alias | cfg-iif | |
|---|---|---|---|
| Health Score | 36 | 57 | 50 |
| Total Downloads | 256.3K | 136.1K | 177.4K |
| 30d Downloads | 10.6K | 20.1K | 205 |
| Dependents | 50 | 3 | 21 |
| Releases | 5 | 6 | 9 |
| Last Updated | 1140d ago | 48d ago | 184d ago |
| Age | 3y 2m | 2y 2m | 4y 9m |
Health Breakdown
cfg-vis
Maintenance
5
Quality
8
Community
7
Popularity
6
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
| cfg-vis | attr_alias | cfg-iif | |
|---|---|---|---|
| Version | 0.3.0 | 0.1.5 | 0.2.8 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 0 | 0 |
| Crate Size | 6KB | 11KB | 15KB |
| Features | 0 | 1 | 1 |
| Yanked % | 40.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-vis has the most downloads (256.3K), suggesting wider adoption.
- •⚠ cfg-vis has not been updated in over a year.