cbor/
lib.rs

1// This Source Code Form is subject to the terms of
2// the Mozilla Public License, v. 2.0. If a copy of
3// the MPL was not distributed with this file, You
4// can obtain one at http://mozilla.org/MPL/2.0/.
5
6//! CBOR (RFC 7049) encoder and decoder implementations.
7
8extern crate byteorder;
9extern crate libc;
10
11#[cfg(test)]
12extern crate rustc_serialize;
13
14#[cfg(feature="random")]
15extern crate quickcheck;
16
17pub mod types;
18pub mod value;
19pub mod decoder;
20pub mod encoder;
21pub mod skip;
22pub mod slice;
23
24#[cfg(feature="random")]
25pub mod random;
26
27pub use decoder::{Config, Decoder, DecodeError, DecodeResult, GenericDecoder};
28pub use decoder::{opt, maybe, or_break};
29pub use encoder::{Encoder, EncodeError, EncodeResult, GenericEncoder};