Decision Workspace
capos-bitstruct vs slicefields vs bitstructs_macro
Side-by-side comparison of Rust crates
34
capos-bitstruct
experimentalv0.1.0
A macro for Rust structures containing bitfields
46
slicefields
growingv1.0.4
Allows for data structures whose members are sub byte aligned (e.g. a one bit alignment)
36
bitstructs_macro
growingv0.2.1
Procedural macro for bitstructs.
Core Metrics
| capos-bitstruct | slicefields | bitstructs_macro | |
|---|---|---|---|
| Health Score | 34 | 46 | 36 |
| Total Downloads | 26 | 6.3K | 3.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 5 |
| Releases | 1 | 5 | 5 |
| Last Updated | 215d ago | 1065d ago | 572d ago |
| Age | 7m | 3y 3m | 1y 7m |
Health Breakdown
capos-bitstruct
Maintenance
4
Quality
14
Community
4
Popularity
2
Documentation
10
slicefields
Maintenance
5
Quality
21
Community
5
Popularity
5
Documentation
10
bitstructs_macro
Maintenance
7
Quality
10
Community
5
Popularity
4
Documentation
10
Technical Details
| capos-bitstruct | slicefields | bitstructs_macro | |
|---|---|---|---|
| Version | 0.1.0 | 1.0.4 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MPL-2.0 | MIT |
| Dependencies | 3 | 4 | 3 |
| Crate Size | 10KB | 13KB | 12KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 20.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •slicefields leads with a health score of 46/100, but none of the options score above 80.
- •⚠ slicefields, bitstructs_macro have not been updated in over a year.
- •capos-bitstruct, bitstructs_macro are pre-1.0 — API may change.