Decision Workspace
packbits vs bitfield-struct vs bilge
Side-by-side comparison of Rust crates
45
packbits
growingv0.1.1
Tiny, zero-boilerplate bit packing for your own structs: convert to/from fixed-size byte arrays and integer containers with one attribute.
61
bitfield-struct
growingv0.13.0
Struct-like procedural macro for bitfields.
59
bilge
growingv0.5.0
Use bitsized types as if they were a feature of rust.
Core Metrics
| packbits | bitfield-struct | bilge | |
|---|---|---|---|
| Health Score | 45 | 61 | 59 |
| Total Downloads | 1.2K | 24.6M | 1.6M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 3 | 1.1K | 148 |
| Releases | 2 | 42 | 10 |
| Last Updated | 379d ago | 188d ago | 21d ago |
| Age | 1y | 4y 9m | 3y 5m |
Health Breakdown
packbits
Maintenance
6
Quality
12
Community
8
Popularity
4
Documentation
15
bitfield-struct
Maintenance
11
Quality
13
Community
14
Popularity
8
Documentation
15
bilge
Maintenance
15
Quality
15
Community
9
Popularity
7
Documentation
13
Technical Details
| packbits | bitfield-struct | bilge | |
|---|---|---|---|
| Version | 0.1.1 | 0.13.0 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 8 | 5 | 11 |
| Crate Size | 254KB | 20KB | 19KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 4.8% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | 1.85 | 1.83.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bitfield-struct leads with a health score of 61/100, but none of the options score above 80.
- •bitfield-struct is depended on by 1.1K crates — strongest ecosystem trust.
- •⚠ packbits has not been updated in over a year.