Decision Workspace
bitflags vs bitmask-enum vs option_set
Side-by-side comparison of Rust crates
74
bitflags
stablev2.13.0
A macro to generate structures which behave like bitflags.
60
bitmask-enum
growingv2.2.5
A bitmask enum attribute macro
53
option_set
growingv0.4.0
Bitflags on steroids
Core Metrics
| bitflags | bitmask-enum | option_set | |
|---|---|---|---|
| Health Score | 74 | 60 | 53 |
| Total Downloads | 1.5B | 4.2M | 5.9M |
| 30d Downloads | 73.7M | 196.7K | 312.4K |
| Dependents | 68.2K | 1.8K | 26 |
| Releases | 62 | 16 | 8 |
| Last Updated | 38d ago | 629d ago | 287d ago |
| Age | 11y 6m | 5y 4m | 8y 4m |
Health Breakdown
bitflags
Maintenance
16
Quality
16
Community
19
Popularity
8
Documentation
15
bitmask-enum
Maintenance
5
Quality
20
Community
14
Popularity
8
Documentation
13
option_set
Maintenance
8
Quality
14
Community
10
Popularity
8
Documentation
13
Technical Details
| bitflags | bitmask-enum | option_set | |
|---|---|---|---|
| Version | 2.13.0 | 2.2.5 | 0.4.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 11 | 2 | 6 |
| Crate Size | 51KB | 12KB | 6KB |
| Features | 3 | 0 | 0 |
| Yanked % | 11.3% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.56.0 | — | — |
| Owners | 2 (team) | 1 | 1 |
Links
Quick Verdict
- •bitflags leads with a health score of 74/100, but none of the options score above 80.
- •bitflags is depended on by 68.2K crates — strongest ecosystem trust.
- •⚠ bitmask-enum has not been updated in over a year.
- •option_set is pre-1.0 — API may change.