finds.dev← search

// the find

pyfisch/cbor

★ 309 · Rust · Apache-2.0 · updated May 2022

CBOR support for serde.

CBOR serialization/deserialization for Rust via serde, covering typed structs and untyped Value trees. Works well for binary protocol work where JSON's verbosity is a problem. The catch: the author archived it in August 2021 and explicitly recommends ciborium or minicbor for new projects.

Serde integration is idiomatic — if your types already derive Serialize/Deserialize, you swap in serde_cbor with one line. Packed encoding and no-std support were meaningful differentiators for embedded/IoT work. Fuzz testing harness is present, which is the right call for a parser. Hundreds of real-world projects have exercised it, so the common paths are well-tested.

Archived. The maintainer said so in the README and pointed you elsewhere — this is not a 'mostly maintained' situation. Last push was May 2022, likely just a patch, with no new features since 2021. No CBOR tags support in the idiomatic API (tags.rs exists but is a rough edge). ciborium, the IANA-endorsed successor, implements RFC 8949 (the updated CBOR spec) while this targets the older RFC 7049.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →