/src/librustc_back/lib.rs

https://gitlab.com/0072016/0072016-rusty · Rust · 54 lines · 28 code · 5 blank · 21 comment · 0 complexity · 1b859872b5978b408f32c042ea30324e 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. #![crate_name = "rustc_back"]
  23. #![unstable(feature = "rustc_private", issue = "27812")]
  24. #![crate_type = "dylib"]
  25. #![crate_type = "rlib"]
  26. #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
  27. html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
  28. html_root_url = "https://doc.rust-lang.org/nightly/")]
  29. #![cfg_attr(not(stage0), deny(warnings))]
  30. #![feature(box_syntax)]
  31. #![feature(libc)]
  32. #![feature(rand)]
  33. #![feature(rustc_private)]
  34. #![feature(staged_api)]
  35. #![feature(step_by)]
  36. #![cfg_attr(test, feature(test, rand))]
  37. extern crate syntax;
  38. extern crate libc;
  39. extern crate serialize;
  40. extern crate rustc_llvm;
  41. extern crate rustc_front;
  42. #[macro_use] extern crate log;
  43. pub mod abi;
  44. pub mod tempdir;
  45. pub mod rpath;
  46. pub mod sha2;
  47. pub mod svh;
  48. pub mod target;
  49. pub mod slice;