cbor-no-std 0.3.0

cbor-no-std is a CBOR Deserializer for Rust which runs in a no_std environment.
Documentation
  • Coverage
  • 0%
    0 out of 57 items documented0 out of 34 items with examples
  • Size
  • Source code size: 19.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.86 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • masonforest

Serde CBOR Rust - no_std

Serde CBOR Rust is a CBOR Deserializers for Rust which runs in a no_std environment.

Currently only a deserializer is implemented and it only deserializes u8s and slices of u8s.

For a fully working implmentation use pyfisch's cbor

Usage

extern crate cbor_no_std
use cbor_no_std::from_slice;

println!("{:?}", from_slice::<Value>(b"\x83\x01\x02\x03").unwrap());
// => Array(1, 2, 3)
println!("{:?}", from_slice::<Value>(b"\x01").unwrap());
// => U64(1)
println!("{:?}", from_slice::<Value>(b"\x18\x2a").unwrap());
// => U64(42)