2014-02-05 16:52:54 +00:00
|
|
|
//! Support code for encoding and decoding types.
|
|
|
|
|
2019-02-05 13:37:15 +00:00
|
|
|
#![doc(
|
2020-09-23 19:51:56 +00: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)))
|
|
|
|
)]
|
2023-11-13 12:39:17 +00:00
|
|
|
#![doc(rust_logo)]
|
|
|
|
#![allow(internal_features)]
|
|
|
|
#![feature(rustdoc_internals)]
|
2023-10-05 09:54:54 +00:00
|
|
|
#![feature(allocator_api)]
|
2019-07-31 19:00:35 +00:00
|
|
|
#![feature(associated_type_bounds)]
|
2023-10-05 09:54:54 +00:00
|
|
|
#![feature(const_option)]
|
2020-12-07 01:30:55 +00:00
|
|
|
#![feature(core_intrinsics)]
|
2023-10-05 09:54:54 +00:00
|
|
|
#![feature(inline_const)]
|
|
|
|
#![feature(min_specialization)]
|
|
|
|
#![feature(never_type)]
|
2023-04-21 03:11:47 +00:00
|
|
|
#![feature(ptr_sub_ptr)]
|
2023-09-04 16:40:08 +00:00
|
|
|
#![feature(slice_first_last_chunk)]
|
2015-04-10 18:39:53 +00:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2019-09-09 16:31:42 +00:00
|
|
|
#![allow(rustc::internal)]
|
2022-08-18 18:27:29 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2014-02-05 16:52:54 +00:00
|
|
|
|
2016-08-31 11:00:29 +00:00
|
|
|
pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
|
2014-02-05 16:52:54 +00:00
|
|
|
|
2015-01-04 06:24:50 +00:00
|
|
|
mod serialize;
|
2014-02-12 00:40:52 +00:00
|
|
|
|
2016-09-01 13:55:33 +00:00
|
|
|
pub mod leb128;
|
|
|
|
pub mod opaque;
|