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