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
8pub mod types;
9pub mod value;
10pub mod decoder;
11pub mod encoder;
12pub mod skip;
13pub mod slice;
14
15#[cfg(feature="random")]
16pub mod random;
17
18pub use decoder::{Config, Decoder, DecodeError, DecodeResult, GenericDecoder};
19pub use decoder::{opt, maybe, or_break};
20pub use encoder::{Encoder, EncodeError, EncodeResult, GenericEncoder};