Decision Workspace
bitflags vs bitmask-enum vs bitflags-attr-macros
Side-by-side comparison of Rust crates
71
bitflags
stablev2.13.2
A macro to generate structures which behave like bitflags.
60
bitmask-enum
growingv2.2.5
A bitmask enum attribute macro
59
bitflags-attr-macros
growingv0.14.0
Attribute macro implementation for bitflags-attr. Do not use directly, use the reexport in the `bitflags` crate. This allows for better compatibility across versions.
Core Metrics
| bitflags | bitmask-enum | bitflags-attr-macros | |
|---|---|---|---|
| Health Score | 71 | 60 | 59 |
| Total Downloads | 2.0B | 5.7M | 11.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 77.5K | 2.0K | 19 |
| Releases | 64 | 16 | 16 |
| Last Updated | 30d ago | 717d ago | 77d ago |
| Age | 11y 9m | 5y 7m | 1y 10m |
Health Breakdown
bitflags
Maintenance
16
Quality
16
Community
16
Popularity
8
Documentation
15
bitmask-enum
Maintenance
5
Quality
20
Community
14
Popularity
8
Documentation
13
bitflags-attr-macros
Maintenance
15
Quality
18
Community
9
Popularity
5
Documentation
12
Technical Details
| bitflags | bitmask-enum | bitflags-attr-macros | |
|---|---|---|---|
| Version | 2.13.2 | 2.2.5 | 0.14.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 11 | 2 | 3 |
| Crate Size | 52KB | 12KB | 15KB |
| Features | 3 | 0 | 6 |
| Yanked % | 10.9% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.56.0 | — | 1.85.0 |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •bitflags leads with a health score of 71/100, but none of the options score above 80.
- •bitflags is depended on by 77.5K crates — strongest ecosystem trust.
- •⚠ bitmask-enum has not been updated in over a year.
- •bitflags-attr-macros is pre-1.0 — API may change.