Decision Workspace
packbits vs bitfield-struct vs bilge
Side-by-side comparison of Rust crates
47
packbits
experimentalv0.1.1
Tiny, zero-boilerplate bit packing for your own structs: convert to/from fixed-size byte arrays and integer containers with one attribute.
62
bitfield-struct
growingv0.12.1
Struct-like procedural macro for bitfields.
52
bilge
growingv0.3.0
Use bitsized types as if they were a feature of rust.
Core Metrics
| packbits | bitfield-struct | bilge | |
|---|---|---|---|
| Health Score | 47 | 62 | 52 |
| Total Downloads | 875 | 10.7M | 724.1K |
| 30d Downloads | 61 | 1.7M | 77.8K |
| Dependents | 3 | 830 | 118 |
| Releases | 2 | 41 | 8 |
| Last Updated | 183d ago | 151d ago | 193d ago |
| Age | 6m | 4y 3m | 2y 11m |
Health Breakdown
packbits
Maintenance
9
Quality
11
Community
8
Popularity
4
Documentation
15
bitfield-struct
Maintenance
12
Quality
13
Community
14
Popularity
8
Documentation
15
bilge
Maintenance
8
Quality
15
Community
9
Popularity
7
Documentation
13
Technical Details
| packbits | bitfield-struct | bilge | |
|---|---|---|---|
| Version | 0.1.1 | 0.12.1 | 0.3.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 8 | 5 | 9 |
| Crate Size | 254KB | 20KB | 15KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 4.9% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | 1.83.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bitfield-struct leads with a health score of 62/100, but none of the options score above 80.
- •bitfield-struct is depended on by 830 crates — strongest ecosystem trust.