CBORG
A CBOR parser for Rust.
Incomplete and built for my own use-case. You probably want serde_cbor
Usage
decode_to
will decode CBOR and unmarshal it into a given object:
// Unmarshal Map
use HashMap;
let bytes = &;
let map: = decode_to.unwrap.unwrap;
assert_eq!;
assert_eq!;
// Unmarshal Array
let bytes = &;
let array: = decode_to.unwrap.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;