2014-02-05 08:52:54 -08:00
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Core encoding and decoding interfaces.
|
|
|
|
*/
|
|
|
|
|
2019-02-05 14:37:15 +01:00
|
|
|
#![doc(
|
2020-09-23 21:51:56 +02:00
|
|
|
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
|
2015-11-03 16:17:57 +00:00
|
|
|
html_playground_url = "https://play.rust-lang.org/",
|
|
|
|
test(attr(allow(unused_variables), deny(warnings)))
|
|
|
|
)]
|
2019-12-11 09:55:29 -05:00
|
|
|
#![feature(never_type)]
|
2019-07-31 21:00:35 +02:00
|
|
|
#![feature(associated_type_bounds)]
|
2020-12-16 19:03:31 -08:00
|
|
|
#![feature(min_specialization)]
|
2020-12-06 17:30:55 -08:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
#![feature(maybe_uninit_slice)]
|
|
|
|
#![feature(new_uninit)]
|
2022-08-25 20:19:18 +00:00
|
|
|
#![feature(allocator_api)]
|
2015-04-10 11:39:53 -07:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2019-09-09 09:31:42 -07:00
|
|
|
#![allow(rustc::internal)]
|
2022-08-18 19:27:29 +01:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2014-02-05 08:52:54 -08:00
|
|
|
|
2016-08-31 14:00:29 +03:00
|
|
|
pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
|
2014-02-05 08:52:54 -08:00
|
|
|
|
2014-02-21 14:18:39 -08:00
|
|
|
mod collection_impls;
|
2015-01-03 22:24:50 -08:00
|
|
|
mod serialize;
|
2014-02-12 08:40:52 +08:00
|
|
|
|
2016-09-01 16:55:33 +03:00
|
|
|
pub mod leb128;
|
|
|
|
pub mod opaque;
|