lib.rs 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! Support code for encoding and decoding types.

/*
Core encoding and decoding interfaces.
*/

17 18
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
#![cfg_attr(stage0, feature(custom_attribute))]
19
#![crate_name = "serialize"]
20
#![unstable(feature = "rustc_private",
21
            reason = "deprecated in favor of rustc-serialize on crates.io")]
B
Brian Anderson 已提交
22
#![staged_api]
23 24 25 26
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
       html_favicon_url = "http://www.rust-lang.org/favicon.ico",
27
       html_root_url = "http://doc.rust-lang.org/nightly/",
28
       html_playground_url = "http://play.rust-lang.org/")]
A
Alex Crichton 已提交
29

30
#![feature(box_syntax)]
31 32
#![feature(collections)]
#![feature(core)]
A
Alex Crichton 已提交
33
#![feature(int_uint)]
34 35
#![feature(old_io)]
#![feature(old_path)]
36
#![feature(rustc_private)]
A
Alex Crichton 已提交
37
#![feature(staged_api)]
38 39
#![feature(std_misc)]
#![feature(unicode)]
40
#![cfg_attr(test, feature(test))]
41 42

// test harness access
A
Alex Crichton 已提交
43 44
#[cfg(test)] extern crate test;
#[macro_use] extern crate log;
45

A
Alex Crichton 已提交
46
extern crate unicode;
A
Alexis Beingessner 已提交
47 48
extern crate collections;

49
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
A
Alex Crichton 已提交
50
                          DecoderHelpers, EncoderHelpers};
51

52
mod serialize;
A
Alex Crichton 已提交
53
mod collection_impls;
54 55

pub mod hex;
A
Alex Crichton 已提交
56
pub mod json;
57 58 59 60

mod rustc_serialize {
    pub use serialize::*;
}