]> git.lizzy.rs Git - rust.git/blob - src/libserialize/lib.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / libserialize / lib.rs
1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Support code for encoding and decoding types.
12
13 /*
14 Core encoding and decoding interfaces.
15 */
16
17 #![crate_id = "serialize#0.10-pre"]
18 #![crate_type = "rlib"]
19 #![crate_type = "dylib"]
20 #![license = "MIT/ASL2"]
21 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23        html_root_url = "http://static.rust-lang.org/doc/master")]
24 #![feature(macro_rules, managed_boxes, default_type_params, phase)]
25
26 // test harness access
27 #[cfg(test)]
28 extern crate test;
29 #[phase(syntax, link)]
30 extern crate log;
31
32 extern crate collections;
33
34 pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
35                           DecoderHelpers, EncoderHelpers};
36
37 // FIXME: remove _old.rs files after snapshot
38 #[cfg(not(stage0))]
39 mod serialize;
40 #[cfg(not(stage0))]
41 mod collection_impls;
42
43 pub mod base64;
44 #[cfg(not(stage0))]
45 pub mod ebml;
46 pub mod hex;
47 #[cfg(not(stage0))]
48 pub mod json;
49
50 #[cfg(stage0)]
51 #[path="./serialize_old.rs"]
52 pub mod serialize;
53
54 #[cfg(stage0)]
55 #[path="./collection_impls_old.rs"]
56 mod collection_impls;
57
58 #[cfg(stage0)]
59 #[path="./ebml_old.rs"]
60 pub mod ebml;
61
62 #[cfg(stage0)]
63 #[path="./json_old.rs"]
64 pub mod json;