1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! A crate for parsing data encoded in [Concise Binary Object Representation
//! (CBOR)](https://cbor.io) (in any of raw binary, hex encoded (with comments)
//! or [diagnostic notation][]) then printing it out in either annotated hex
//! form or diagnostic notation. While doing so as much of the structured data
//! as possible is retained to improve the debugging experience.  The primary
//! intention of this crate is to be used in diagnostic tools working with CBOR
//! data.
//!
//! [diagnostic notation]: https://tools.ietf.org/html/rfc7049#section-6

#![warn(rust_2018_idioms)]

mod encode;
mod error;
mod parse;
mod syntax;

pub use self::{
    error::{Error, Result},
    parse::{parse_bytes, parse_bytes_partial, parse_diag, parse_hex},
    syntax::{ByteString, DataItem, FloatWidth, IntegerWidth, Simple, Tag, TextString},
};