lib.rs 1.4 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
#![experimental]
19 20 21 22
#![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",
23
       html_root_url = "http://doc.rust-lang.org/nightly/",
24
       html_playground_url = "http://play.rust-lang.org/")]
25
#![allow(unknown_features)]
A
Alex Crichton 已提交
26
#![feature(macro_rules, default_type_params, phase, slicing_syntax, globs)]
27
#![feature(unboxed_closures)]
28 29 30

// test harness access
#[cfg(test)]
L
Liigo Zhuang 已提交
31
extern crate test;
32 33 34 35

#[phase(plugin, link)]
extern crate log;

A
Alexis Beingessner 已提交
36 37
extern crate collections;

38
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
A
Alex Crichton 已提交
39
                          DecoderHelpers, EncoderHelpers};
40 41

mod serialize;
A
Alex Crichton 已提交
42
mod collection_impls;
43 44 45

pub mod base64;
pub mod hex;
A
Alex Crichton 已提交
46
pub mod json;