Crate saltpig[][src]

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.

Re-exports

pub use error::Error;
pub use extensions::Extension;
pub use result::Result;
pub use value::Value;

Modules

error

Error types produced by this crate.

extensions

The extension trait, and modules with IANA-accepted extensions.

result

The crate-specific Result type alias.

value