2014-02-05 10:52:54 -06:00
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Core encoding and decoding interfaces.
|
|
|
|
*/
|
|
|
|
|
2019-12-22 16:42:04 -06:00
|
|
|
#![doc(
|
2020-09-23 14:51:56 -05:00
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
2019-12-22 16:42:04 -06:00
|
|
|
html_playground_url = "https://play.rust-lang.org/",
|
|
|
|
test(attr(allow(unused_variables), deny(warnings)))
|
|
|
|
)]
|
2015-01-07 08:15:34 -06:00
|
|
|
#![feature(box_syntax)]
|
2019-12-11 08:55:29 -06:00
|
|
|
#![feature(never_type)]
|
2018-09-26 16:26:46 -05:00
|
|
|
#![feature(nll)]
|
2019-07-31 14:00:35 -05:00
|
|
|
#![feature(associated_type_bounds)]
|
2020-12-16 21:03:31 -06:00
|
|
|
#![feature(min_specialization)]
|
2020-12-06 19:30:55 -06:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
#![feature(maybe_uninit_slice)]
|
|
|
|
#![feature(new_uninit)]
|
2015-04-10 13:39:53 -05:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2019-09-09 11:31:42 -05:00
|
|
|
#![allow(rustc::internal)]
|
2014-02-05 10:52:54 -06:00
|
|
|
|
2019-12-22 16:42:04 -06:00
|
|
|
pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
|
2014-02-05 10:52:54 -06:00
|
|
|
|
2014-02-21 16:18:39 -06:00
|
|
|
mod collection_impls;
|
2019-12-22 16:42:04 -06:00
|
|
|
mod serialize;
|
2014-02-11 18:40:52 -06:00
|
|
|
|
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 leb128;
|
2019-12-22 16:42:04 -06:00
|
|
|
pub mod opaque;
|