cbor-core 0.9.0

CBOR::Core deterministic encoder/decoder with owned data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cbor_core::Value;

fn main() {
    let mut cbor = Value::map(());

    cbor.insert(1, 45.7);
    cbor.insert(2, "Hi there!");

    // prints: a201fb4046d9999999999a0269486920746865726521
    println!("{}", cbor.encode_hex());
}