Crate transmog_cbor
source · [−]Expand description
Transmog implementation of the CBOR format, powered by the Ciborium crate.
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
Structs
Enums
CBOR serialization and deserialization errors.