#cbor #serialization #value #standard #rfc #conversion #generic

nightly saltpig

The Rustic, ergonomic, and extensible CBOR implementation

1 unstable release

Uses old Rust 2015

0.0.0 Jun 18, 2018

#94 in #cbor

GPL-3.0+ OR BSD-3-Clause

105KB
2K SLoC

saltpig is a CBOR implementation featuring an ergonomic generic value type, full use of the standard conversion traits, and support for tagged values (built-in and custom). Additionally, efficient zero-allocation encoding and serde support are planned for a future release.

CBOR

The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.

— The CBOR standard, RFC 7049

Cargo Features

To avoid pulling in extra crates unnecessarily, saltpig makes the extensions modules conditional on Cargo features beginning with ext- (with the exception of extensions::cbor, which requires only saltpig and core, and is thus always included). saltpig intends to support all standard tags in this manner in a future release. See the list of extensions for information on supported standard tags, and their feature names and crate dependencies.

Dependencies

~440KB