1#![allow(internal_features)]
5#![allow(rustc::internal)]
6#![cfg_attr(not(bootstrap), feature(sized_hierarchy))]
7#![cfg_attr(test, feature(test))]
8#![doc(
9 html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
10 html_playground_url = "https://play.rust-lang.org/",
11 test(attr(allow(unused_variables), deny(warnings)))
12)]
13#![doc(rust_logo)]
14#![feature(core_intrinsics)]
15#![feature(min_specialization)]
16#![feature(never_type)]
17#![feature(rustdoc_internals)]
18#[cfg(test)]
22extern crate self as rustc_serialize;
23
24pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
25
26mod serialize;
27
28pub mod int_overflow;
29pub mod leb128;
30pub mod opaque;
31
32#[cfg(not(bootstrap))]
41pub use std::marker::PointeeSized;
42
43#[cfg(bootstrap)]
44pub trait PointeeSized {}
45#[cfg(bootstrap)]
46impl<T: ?Sized> PointeeSized for T {}