Decision Workspace
binary-layout vs serde-binary vs dataview
Side-by-side comparison of Rust crates
61
binary-layout
growingv4.0.2
The binary-layout library allows type-safe, inplace, zero-copy access to structured binary data. You define a custom data layout and give it a slice of binary data, and it will allow you to read and write the fields defined in the layout from the binary data without having to copy any of the data. It's similar to transmuting to/from a `#[repr(packed)]` struct, but much safer.
42
serde-binary
growingv0.5.0
Serde data format for binary files
70
dataview
stablev1.1.0
Safe transmute between types and byte arrays of the same size.
Core Metrics
| binary-layout | serde-binary | dataview | |
|---|---|---|---|
| Health Score | 61 | 42 | 70 |
| Total Downloads | 691.4K | 104.9K | 1.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 143 | 58 | 120 |
| Releases | 20 | 11 | 8 |
| Last Updated | 909d ago | 1377d ago | 16d ago |
| Age | 5y 5m | 4y 6m | 6y 9m |
Health Breakdown
binary-layout
Maintenance
6
Quality
21
Community
12
Popularity
7
Documentation
15
serde-binary
Maintenance
4
Quality
14
Community
8
Popularity
6
Documentation
10
dataview
Maintenance
16
Quality
21
Community
11
Popularity
7
Documentation
15
Technical Details
| binary-layout | serde-binary | dataview | |
|---|---|---|---|
| Version | 4.0.2 | 0.5.0 | 1.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 4 | 4 | 1 |
| Crate Size | 42KB | 6KB | 16KB |
| Features | 2 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.59 | — | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •dataview leads with a health score of 70/100, but none of the options score above 80.
- •binary-layout is depended on by 143 crates — strongest ecosystem trust.
- •⚠ binary-layout, serde-binary have not been updated in over a year.
- •serde-binary is pre-1.0 — API may change.