/src/libserialize/lib.rs

https://gitlab.com/alx741/rust · Rust · 57 lines · 33 code · 10 blank · 14 comment · 0 complexity · e7e429e0c6b67355ef06bb68ed97b3c3 MD5 · raw file

  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. //! Support code for encoding and decoding types.
  11. /*
  12. Core encoding and decoding interfaces.
  13. */
  14. #![crate_name = "serialize"]
  15. #![unstable(feature = "rustc_private",
  16. reason = "deprecated in favor of rustc-serialize on crates.io",
  17. issue = "27812")]
  18. #![crate_type = "rlib"]
  19. #![crate_type = "dylib"]
  20. #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  21. html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
  22. html_root_url = "https://doc.rust-lang.org/nightly/",
  23. html_playground_url = "https://play.rust-lang.org/",
  24. test(attr(allow(unused_variables), deny(warnings))))]
  25. #![cfg_attr(not(stage0), deny(warnings))]
  26. #![feature(box_syntax)]
  27. #![feature(collections)]
  28. #![feature(enumset)]
  29. #![feature(rustc_private)]
  30. #![feature(staged_api)]
  31. #![feature(unicode)]
  32. #![feature(question_mark)]
  33. #![cfg_attr(test, feature(test))]
  34. // test harness access
  35. #[cfg(test)] extern crate test;
  36. #[macro_use] extern crate log;
  37. extern crate rustc_unicode;
  38. extern crate collections;
  39. pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
  40. DecoderHelpers, EncoderHelpers};
  41. mod serialize;
  42. mod collection_impls;
  43. pub mod hex;
  44. pub mod json;
  45. mod rustc_serialize {
  46. pub use serialize::*;
  47. }