lib.rs 1.6 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
#![crate_name = "serialize"]
18
#![unstable(feature = "rustc_private",
19
            reason = "deprecated in favor of rustc-serialize on crates.io")]
B
Brian Anderson 已提交
20
#![staged_api]
21 22 23 24
#![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",
25
       html_root_url = "http://doc.rust-lang.org/nightly/",
26
       html_playground_url = "http://play.rust-lang.org/")]
A
Alex Crichton 已提交
27

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

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

A
Alex Crichton 已提交
44
extern crate unicode;
A
Alexis Beingessner 已提交
45 46
extern crate collections;

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

50
mod serialize;
A
Alex Crichton 已提交
51
mod collection_impls;
52 53

pub mod hex;
A
Alex Crichton 已提交
54
pub mod json;
55 56 57 58

mod rustc_serialize {
    pub use serialize::*;
}