1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! zser.rs: Implementation of the zcred serialization format

#![crate_name = "zser"]
#![crate_type = "lib"]

#![deny(missing_docs)]

// For error-chain
#![recursion_limit = "1024"]

#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![cfg_attr(not(feature = "std"), feature(collections))]
#![cfg_attr(feature = "bench", feature(test))]

extern crate byteorder;
#[macro_use]
extern crate error_chain;

#[cfg(not(feature = "std"))]
extern crate collections;

#[cfg(all(feature = "bench", test))]
extern crate test;

// For competitive benchmarking
#[cfg(all(feature = "bench", test))]
extern crate leb128;

pub mod decoder;
pub mod errors;
pub mod parser;
pub mod value;
pub mod varint;

pub use value::Value;