Decision Workspace
bitmask-enum vs bitflags vs option_set
Side-by-side comparison of Rust crates
62
bitmask-enum
growingv2.2.5
A bitmask enum attribute macro
73
bitflags
stablev2.11.1
A macro to generate structures which behave like bitflags.
54
option_set
growingv0.4.0
Bitflags on steroids
Core Metrics
| bitmask-enum | bitflags | option_set | |
|---|---|---|---|
| Health Score | 62 | 73 | 54 |
| Total Downloads | 3.7M | 1.3B | 5.1M |
| 30d Downloads | 242.9K | 103.0M | 450.6K |
| Dependents | 1.6K | 64.0K | 25 |
| Releases | 16 | 59 | 8 |
| Last Updated | 580d ago | 41d ago | 238d ago |
| Age | 5y 2m | 11y 4m | 8y 2m |
Health Breakdown
bitmask-enum
Maintenance
7
Quality
20
Community
14
Popularity
8
Documentation
13
bitflags
Maintenance
15
Quality
16
Community
19
Popularity
8
Documentation
15
option_set
Maintenance
9
Quality
14
Community
10
Popularity
8
Documentation
13
Technical Details
| bitmask-enum | bitflags | option_set | |
|---|---|---|---|
| Version | 2.2.5 | 2.11.1 | 0.4.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 2 | 11 | 6 |
| Crate Size | 12KB | 49KB | 6KB |
| Features | 0 | 3 | 0 |
| Yanked % | 0.0% | 10.2% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.56.0 | — |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •bitflags leads with a health score of 73/100, but none of the options score above 80.
- •bitflags is depended on by 64.0K crates — strongest ecosystem trust.
- •⚠ bitmask-enum has not been updated in over a year.
- •option_set is pre-1.0 — API may change.