/src/librustc_metadata/lib.rs

https://gitlab.com/alx741/rust · Rust · 62 lines · 44 code · 9 blank · 9 comment · 0 complexity · d6caad4b5e9e2cce56c71061c815b620 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(question_mark)]
  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 as rustc_serialize; // used by deriving
  31. #[macro_use]
  32. extern crate rustc;
  33. extern crate rustc_back;
  34. extern crate rustc_llvm;
  35. extern crate rustc_const_math;
  36. pub use rustc::middle;
  37. #[macro_use]
  38. mod macros;
  39. pub mod diagnostics;
  40. pub mod astencode;
  41. pub mod common;
  42. pub mod def_key;
  43. pub mod tyencode;
  44. pub mod tydecode;
  45. pub mod encoder;
  46. pub mod decoder;
  47. pub mod creader;
  48. pub mod csearch;
  49. pub mod cstore;
  50. pub mod index;
  51. pub mod loader;
  52. pub mod macro_import;
  53. pub mod tls_context;