Decision Workspace
bit-flags vs enumflags2 vs enumflags2_derive
Side-by-side comparison of Rust crates
44
bit-flags
experimentalv0.1.2
provides an easy-to-use Flags trait that makes custom bitflag enums easier to implement in Rust
53
enumflags2
growingv0.7.12
Enum-based bit flags
51
enumflags2_derive
growingv0.7.12
Do not use directly, use the reexport in the `enumflags2` crate. This allows for better compatibility across versions.
Core Metrics
| bit-flags | enumflags2 | enumflags2_derive | |
|---|---|---|---|
| Health Score | 44 | 53 | 51 |
| Total Downloads | 1.3K | 61.8M | 61.8M |
| 30d Downloads | 6 | 5.7M | 5.7M |
| Dependents | 0 | 2.4K | 50 |
| Releases | 3 | 22 | 18 |
| Last Updated | 277d ago | 291d ago | 291d ago |
| Age | 9m | 7y 1m | 7y 1m |
Health Breakdown
bit-flags
Maintenance
9
Quality
15
Community
3
Popularity
4
Documentation
13
enumflags2
Maintenance
9
Quality
10
Community
12
Popularity
8
Documentation
14
enumflags2_derive
Maintenance
9
Quality
15
Community
8
Popularity
8
Documentation
11
Technical Details
| bit-flags | enumflags2 | enumflags2_derive | |
|---|---|---|---|
| Version | 0.1.2 | 0.7.12 | 0.7.12 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 2 | 3 |
| Crate Size | 3KB | 18KB | 9KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 31.8% | 0.0% |
| Edition | 2024 | 2018 | 2018 |
| MSRV | — | 1.56 | 1.56 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enumflags2 leads with a health score of 53/100, but none of the options score above 80.
- •enumflags2 is depended on by 2.4K crates — strongest ecosystem trust.