/src/librustc_back/lib.rs

https://gitlab.com/pranith/rust · Rust · 65 lines · 38 code · 5 blank · 22 comment · 0 complexity · 050c6babba61c8f166d691af86897bec 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. //! Some stuff used by rustc that doesn't have many dependencies
  11. //!
  12. //! Originally extracted from rustc::back, which was nominally the
  13. //! compiler 'backend', though LLVM is rustc's backend, so rustc_back
  14. //! is really just odds-and-ends relating to code gen and linking.
  15. //! This crate mostly exists to make rustc smaller, so we might put
  16. //! more 'stuff' here in the future. It does not have a dependency on
  17. //! rustc_llvm.
  18. //!
  19. //! FIXME: Split this into two crates: one that has deps on syntax, and
  20. //! one that doesn't; the one that doesn't might get decent parallel
  21. //! build speedups.
  22. // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
  23. #![cfg_attr(stage0, feature(custom_attribute))]
  24. #![crate_name = "rustc_back"]
  25. #![unstable(feature = "rustc_private")]
  26. #![staged_api]
  27. #![crate_type = "dylib"]
  28. #![crate_type = "rlib"]
  29. #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  30. html_favicon_url = "http://www.rust-lang.org/favicon.ico",
  31. html_root_url = "http://doc.rust-lang.org/nightly/")]
  32. #![feature(box_syntax)]
  33. #![feature(collections)]
  34. #![feature(core)]
  35. #![feature(old_fs)]
  36. #![feature(old_io)]
  37. #![feature(old_path)]
  38. #![feature(rustc_private)]
  39. #![feature(staged_api)]
  40. #![feature(rand)]
  41. #![feature(path_ext)]
  42. #![feature(step_by)]
  43. #![cfg_attr(test, feature(test, rand))]
  44. extern crate syntax;
  45. extern crate serialize;
  46. #[macro_use] extern crate log;
  47. pub mod abi;
  48. pub mod archive;
  49. pub mod tempdir;
  50. pub mod arm;
  51. pub mod fs;
  52. pub mod mips;
  53. pub mod mipsel;
  54. pub mod rpath;
  55. pub mod sha2;
  56. pub mod svh;
  57. pub mod target_strs;
  58. pub mod x86;
  59. pub mod x86_64;
  60. pub mod target;