/src/librustc_trans/lib.rs

https://gitlab.com/0072016/0072016-rusty · Rust · 86 lines · 59 code · 13 blank · 14 comment · 0 complexity · f5af98a6d6f2ecb65df891a0c28c031e MD5 · raw file

  1. // Copyright 2012-2013 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. //! The Rust compiler.
  11. //!
  12. //! # Note
  13. //!
  14. //! This API is completely unstable and subject to change.
  15. #![crate_name = "rustc_trans"]
  16. #![unstable(feature = "rustc_private", issue = "27812")]
  17. #![crate_type = "dylib"]
  18. #![crate_type = "rlib"]
  19. #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  20. html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
  21. html_root_url = "https://doc.rust-lang.org/nightly/")]
  22. #![cfg_attr(not(stage0), deny(warnings))]
  23. #![feature(box_patterns)]
  24. #![feature(box_syntax)]
  25. #![feature(const_fn)]
  26. #![feature(custom_attribute)]
  27. #![allow(unused_attributes)]
  28. #![feature(iter_arith)]
  29. #![feature(libc)]
  30. #![feature(quote)]
  31. #![feature(rustc_diagnostic_macros)]
  32. #![feature(rustc_private)]
  33. #![feature(slice_patterns)]
  34. #![feature(staged_api)]
  35. #![feature(unicode)]
  36. #![allow(trivial_casts)]
  37. extern crate arena;
  38. extern crate flate;
  39. extern crate getopts;
  40. extern crate graphviz;
  41. extern crate libc;
  42. extern crate rustc;
  43. extern crate rustc_back;
  44. extern crate rustc_data_structures;
  45. extern crate rustc_front;
  46. extern crate rustc_llvm as llvm;
  47. extern crate rustc_mir;
  48. extern crate rustc_platform_intrinsics as intrinsics;
  49. extern crate serialize;
  50. #[macro_use] extern crate log;
  51. #[macro_use] extern crate syntax;
  52. pub use rustc::session;
  53. pub use rustc::middle;
  54. pub use rustc::lint;
  55. pub use rustc::util;
  56. pub mod back {
  57. pub use rustc_back::abi;
  58. pub use rustc_back::rpath;
  59. pub use rustc_back::svh;
  60. pub mod archive;
  61. pub mod linker;
  62. pub mod link;
  63. pub mod lto;
  64. pub mod write;
  65. pub mod msvc;
  66. }
  67. pub mod diagnostics;
  68. pub mod trans;
  69. pub mod save;
  70. pub mod lib {
  71. pub use llvm;
  72. }
  73. __build_diagnostic_array! { librustc_trans, DIAGNOSTICS }