/src/librustc_metadata/lib.rs

https://gitlab.com/0072016/0072016-rusty · Rust · 60 lines · 42 code · 9 blank · 9 comment · 0 complexity · 8384ba5518d400d6e17c23761d361b1a MD5 · raw file

  1. // Copyright 2015 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. #![crate_name = "rustc_metadata"]
  11. #![unstable(feature = "rustc_private", issue = "27812")]
  12. #![crate_type = "dylib"]
  13. #![crate_type = "rlib"]
  14. #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  15. html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
  16. html_root_url = "https://doc.rust-lang.org/nightly/")]
  17. #![cfg_attr(not(stage0), deny(warnings))]
  18. #![feature(box_patterns)]
  19. #![feature(enumset)]
  20. #![feature(quote)]
  21. #![feature(rustc_diagnostic_macros)]
  22. #![feature(rustc_private)]
  23. #![feature(staged_api)]
  24. #![feature(time2)]
  25. #[macro_use] extern crate log;
  26. #[macro_use] extern crate syntax;
  27. #[macro_use] #[no_link] extern crate rustc_bitflags;
  28. extern crate flate;
  29. extern crate rbml;
  30. extern crate serialize;
  31. extern crate rustc;
  32. extern crate rustc_back;
  33. extern crate rustc_front;
  34. extern crate rustc_llvm;
  35. pub use rustc::middle;
  36. #[macro_use]
  37. mod macros;
  38. pub mod diagnostics;
  39. pub mod astencode;
  40. pub mod common;
  41. pub mod tyencode;
  42. pub mod tydecode;
  43. pub mod encoder;
  44. pub mod decoder;
  45. pub mod creader;
  46. pub mod csearch;
  47. pub mod cstore;
  48. pub mod index;
  49. pub mod loader;
  50. pub mod macro_import;
  51. pub mod tls_context;