2 releases

Uses old Rust 2015

0.1.1 Jul 11, 2018
0.1.0 Jul 11, 2018

#20 in #lite

MIT license

18KB
484 lines

Rust CBOR lite

A lite CBOR encoder and decoder for Rust. The primary goal of cbor_lite is to allow encoding and decoding of CBOR data with minimal implementation size. The library doesn't have error handling and doesn't support custom data types.

For a fully working implementation use pyfisch's serde_cbor or BurntSushi's cbor

Usage

extern crate cbor_lite;
use cbor_lite::from_bytes;

println!("{:?}", from_bytes::(vec![131, 1, 2, 3]));
// => Array(1, 2, 3)

No runtime deps