2014-02-05 10:52:54 -06:00
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Core encoding and decoding interfaces.
|
|
|
|
*/
|
|
|
|
|
2015-08-09 16:15:05 -05:00
|
|
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
2015-05-15 18:04:01 -05:00
|
|
|
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
2015-08-09 16:15:05 -05:00
|
|
|
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};
|
|
|
|
|
2018-08-13 14:15:16 -05:00
|
|
|
extern crate smallvec;
|
|
|
|
|
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;
|
|
|
|
|
2014-12-19 00:52:48 -06:00
|
|
|
mod rustc_serialize {
|
|
|
|
pub use serialize::*;
|
|
|
|
}
|