2014-02-05 08:52:54 -08:00
|
|
|
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Core encoding and decoding interfaces.
|
|
|
|
*/
|
|
|
|
|
2015-08-09 14:15:05 -07:00
|
|
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
2015-05-15 16:04:01 -07:00
|
|
|
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
2015-08-09 14:15:05 -07:00
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/",
|
2015-11-03 16:17:57 +00:00
|
|
|
html_playground_url = "https://play.rust-lang.org/",
|
|
|
|
test(attr(allow(unused_variables), deny(warnings))))]
|
2015-01-30 12:26:44 -08:00
|
|
|
|
2015-01-07 15:15:34 +01:00
|
|
|
#![feature(box_syntax)]
|
2016-08-27 20:18:02 +03:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
#![feature(specialization)]
|
2015-04-10 11:39:53 -07:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2014-02-05 08:52:54 -08:00
|
|
|
|
2016-08-31 14:00:29 +03:00
|
|
|
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};
|
2014-02-05 08:52:54 -08:00
|
|
|
|
2016-08-27 20:18:02 +03:00
|
|
|
pub use self::serialize::{SpecializationError, SpecializedEncoder, SpecializedDecoder};
|
|
|
|
pub use self::serialize::{UseSpecializedEncodable, UseSpecializedDecodable};
|
|
|
|
|
2015-01-03 22:24:50 -08:00
|
|
|
mod serialize;
|
2014-02-21 14:18:39 -08:00
|
|
|
mod collection_impls;
|
2014-02-12 08:40:52 +08:00
|
|
|
|
|
|
|
pub mod hex;
|
2014-02-21 14:18:39 -08:00
|
|
|
pub mod json;
|
2014-12-18 22:52:48 -08:00
|
|
|
|
2016-09-01 16:55:33 +03:00
|
|
|
pub mod opaque;
|
|
|
|
pub mod leb128;
|
|
|
|
|
2014-12-18 22:52:48 -08:00
|
|
|
mod rustc_serialize {
|
|
|
|
pub use serialize::*;
|
|
|
|
}
|