Crate transmog_cbor

source ·
Expand description

Transmog implementation of the CBOR format, powered by the Ciborium crate.

transmog-cbor forbids unsafe code crate version Documentation for main branch

This crate provides a Format trait implementation using the Cbor type:

use transmog::{Format, OwnedDeserializer};
use transmog_cbor::Cbor;

let cbor = Cbor::default();
let serialized = cbor.serialize(&42_u64).unwrap();
let deserialized: u64 = cbor.deserialize_owned(&serialized).unwrap();
assert_eq!(deserialized, 42);

Re-exports

  • pub use ciborium;
  • pub use transmog;

Structs

  • CBOR implementor of [Format].

Enums

  • CBOR serialization and deserialization errors.