3 releases

0.1.0 Feb 4, 2022
0.1.0-dev.2 Dec 31, 2021
0.1.0-dev.1 Dec 29, 2021

#6 in #transmog

MIT/Apache

12KB
180 lines

transmog-cbor

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);

Open-source Licenses

This project, like all projects from Khonsu Labs, are open-source. This repository is available under the MIT License or the Apache License 2.0.

To learn more about contributing, please see CONTRIBUTING.md.

Dependencies

~0.8–1.4MB
~31K SLoC