Decision Workspace
bit-struct vs bitfields-impl vs bitfields
Side-by-side comparison of Rust crates
50
bit-struct
growingv0.3.2
Define structs which have fields which are assigned to individual bits, not bytes
65
bitfields-impl
stablev1.0.3
Macro for generating flexible bitfields. Useful for low-level code (embedded or emulators).
61
bitfields
stablev1.0.3
Macro for generating flexible bitfields. Useful for low-level code (embedded or emulators).
Core Metrics
| bit-struct | bitfields-impl | bitfields | |
|---|---|---|---|
| Health Score | 50 | 65 | 61 |
| Total Downloads | 310.3K | 539.3K | 574.5K |
| 30d Downloads | 5.2K | 150.0K | 150.8K |
| Dependents | 16 | 26 | 39 |
| Releases | 38 | 27 | 28 |
| Last Updated | 1121d ago | 4d ago | 4d ago |
| Age | 4y 3m | 1y 3m | 7y 7m |
Health Breakdown
bit-struct
Maintenance
7
Quality
13
Community
8
Popularity
7
Documentation
15
bitfields-impl
Maintenance
19
Quality
17
Community
10
Popularity
7
Documentation
12
bitfields
Maintenance
18
Quality
14
Community
10
Popularity
7
Documentation
12
Technical Details
| bit-struct | bitfields-impl | bitfields | |
|---|---|---|---|
| Version | 0.3.2 | 1.0.3 | 1.0.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 8 | 4 | 2 |
| Crate Size | 20KB | 24KB | 12KB |
| Features | 1 | 0 | 0 |
| Yanked % | 2.6% | 0.0% | 10.7% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.62.1 | 1.83.0 | 1.83.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bitfields-impl leads with a health score of 65/100, but none of the options score above 80.
- •bitfields has the most downloads (574.5K), suggesting wider adoption.
- •⚠ bit-struct has not been updated in over a year.
- •bit-struct is pre-1.0 — API may change.