Decision Workspace
cbor2 vs cbor2-derive vs heapless-bytes
Side-by-side comparison of Rust crates
64
cbor2
experimentalv1.0.5
Full-featured CBOR (RFC 8949) for serde: async item I/O, canonical encoding, no_std, Value/RawValue, tags, COSE keys, validation and diagnostics.
60
cbor2-derive
experimentalv1.0.5
Derive cbor2 serde impls for CBOR protocols: integer map keys, semantic tags and inspectable COSE metadata.
56
heapless-bytes
growingv0.5.0
Newtype around heapless byte Vec with efficient serde.
Core Metrics
| cbor2 | cbor2-derive | heapless-bytes | |
|---|---|---|---|
| Health Score | 64 | 60 | 56 |
| Total Downloads | 350 | 157 | 274.0K |
| 30d Downloads | 0 | 0 | 15.7K |
| Dependents | 44 | 7 | 111 |
| Releases | 7 | 6 | 6 |
| Last Updated | 1d ago | 1d ago | 271d ago |
| Age | 3d | 3d | 6y 4m |
Health Breakdown
cbor2
Maintenance
19
Quality
16
Community
11
Popularity
3
Documentation
15
cbor2-derive
Maintenance
19
Quality
16
Community
7
Popularity
3
Documentation
15
heapless-bytes
Maintenance
7
Quality
16
Community
17
Popularity
6
Documentation
10
Technical Details
| cbor2 | cbor2-derive | heapless-bytes | |
|---|---|---|---|
| Version | 1.0.5 | 1.0.5 | 0.5.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 8 | 3 | 4 |
| Crate Size | 156KB | 12KB | 14KB |
| Features | 6 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.85 | 1.85 | — |
| Owners | 1 | 1 | 3 (team) |
Links
Quick Verdict
- •cbor2 leads with a health score of 64/100, but none of the options score above 80.
- •heapless-bytes has the most downloads (274.0K), suggesting wider adoption.
- •heapless-bytes is depended on by 111 crates — strongest ecosystem trust.
- •heapless-bytes is pre-1.0 — API may change.