/src/librustc_trans/lib.rs

https://gitlab.com/pranith/rust · Rust · 89 lines · 62 code · 12 blank · 15 comment · 0 complexity · 493e7e167bd4785747b2a60c61015d75 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. // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
  16. #![cfg_attr(stage0, feature(custom_attribute))]
  17. #![crate_name = "rustc_trans"]
  18. #![unstable(feature = "rustc_private")]
  19. #![staged_api]
  20. #![crate_type = "dylib"]
  21. #![crate_type = "rlib"]
  22. #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  23. html_favicon_url = "http://www.rust-lang.org/favicon.ico",
  24. html_root_url = "http://doc.rust-lang.org/nightly/")]
  25. #![feature(alloc)]
  26. #![feature(box_patterns)]
  27. #![feature(box_syntax)]
  28. #![feature(collections)]
  29. #![feature(core)]
  30. #![feature(libc)]
  31. #![feature(quote)]
  32. #![feature(rustc_diagnostic_macros)]
  33. #![feature(rustc_private)]
  34. #![feature(unsafe_destructor)]
  35. #![feature(staged_api)]
  36. #![feature(unicode)]
  37. #![feature(path_ext)]
  38. #![feature(fs)]
  39. #![feature(path_relative_from)]
  40. #![allow(trivial_casts)]
  41. extern crate arena;
  42. extern crate flate;
  43. extern crate getopts;
  44. extern crate graphviz;
  45. extern crate libc;
  46. extern crate rustc;
  47. extern crate rustc_back;
  48. extern crate serialize;
  49. extern crate rustc_llvm as llvm;
  50. #[macro_use] extern crate log;
  51. #[macro_use] extern crate syntax;
  52. pub use rustc::session;
  53. pub use rustc::metadata;
  54. pub use rustc::middle;
  55. pub use rustc::lint;
  56. pub use rustc::plugin;
  57. pub use rustc::util;
  58. pub mod back {
  59. pub use rustc_back::abi;
  60. pub use rustc_back::archive;
  61. pub use rustc_back::arm;
  62. pub use rustc_back::mips;
  63. pub use rustc_back::mipsel;
  64. pub use rustc_back::rpath;
  65. pub use rustc_back::svh;
  66. pub use rustc_back::target_strs;
  67. pub use rustc_back::x86;
  68. pub use rustc_back::x86_64;
  69. pub mod link;
  70. pub mod lto;
  71. pub mod write;
  72. }
  73. pub mod trans;
  74. pub mod save;
  75. pub mod lib {
  76. pub use llvm;
  77. }