2014-02-05 10:52:54 -06:00
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Core encoding and decoding interfaces.
|
|
|
|
*/
|
|
|
|
|
2019-02-05 07:37:15 -06:00
|
|
|
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
|
2015-11-03 10:17:57 -06:00
|
|
|
html_playground_url = "https://play.rust-lang.org/",
|
|
|
|
test(attr(allow(unused_variables), deny(warnings))))]
|
2015-01-30 14:26:44 -06:00
|
|
|
|
2015-01-07 08:15:34 -06:00
|
|
|
#![feature(box_syntax)]
|
2016-08-27 12:18:02 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
#![feature(specialization)]
|
2018-06-04 15:14:02 -05:00
|
|
|
#![feature(never_type)]
|
2018-09-26 16:26:46 -05:00
|
|
|
#![feature(nll)]
|
2015-04-10 13:39:53 -05:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2014-02-05 10:52:54 -06:00
|
|
|
|
2016-08-31 06:00:29 -05:00
|
|
|
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};
|
2014-02-05 10:52:54 -06:00
|
|
|
|
2016-08-27 12:18:02 -05:00
|
|
|
pub use self::serialize::{SpecializationError, SpecializedEncoder, SpecializedDecoder};
|
|
|
|
pub use self::serialize::{UseSpecializedEncodable, UseSpecializedDecodable};
|
|
|
|
|
2015-01-04 00:24:50 -06:00
|
|
|
mod serialize;
|
2014-02-21 16:18:39 -06:00
|
|
|
mod collection_impls;
|
2014-02-11 18:40:52 -06:00
|
|
|
|
|
|
|
pub mod hex;
|
2014-02-21 16:18:39 -06:00
|
|
|
pub mod json;
|
2014-12-19 00:52:48 -06:00
|
|
|
|
2016-09-01 08:55:33 -05:00
|
|
|
pub mod opaque;
|
|
|
|
pub mod leb128;
|