Expand description
CBOR done right.
borc is an implementation of CBOR, the Concise Binary Object Representation, as defined in RFC 8949. CBOR is a simple but powerful data format whose potential has so far gone underused, especially in the Rust space (due to the dominance of Serde, which does not and probably cannot support its full feature set). borc aims to be a one-stop shop for CBOR and CBOR-based protocols.
This crate provides the following interfaces:
basic::streaming
, a streaming encoder/decoder pair that is lightweight but tricky to usebasic::tree
, a tree-based encoder/decoder pair that is easier to use but holds the entire CBOR structure in memory at onceextended::streaming
, a streaming encoder/decoder pair with special handling of some tagsextended::tree
, a tree-based encoder/decoder pair with special handling of some tags
For details on the extensions currently implemented, check the documentation for the extended
module.