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