Crate borc

Source
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 use
  • basic::tree, a tree-based encoder/decoder pair that is easier to use but holds the entire CBOR structure in memory at once
  • extended::streaming, a streaming encoder/decoder pair with special handling of some tags
  • extended::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.

Modulesยง

basic
Implementations of the CBOR basic data model.
errors
extended
Implementations of CBOR with extensions.