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.
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.
11 //! Some stuff used by rustc that doesn't have many dependencies
13 //! Originally extracted from rustc::back, which was nominally the
14 //! compiler 'backend', though LLVM is rustc's backend, so rustc_back
15 //! is really just odds-and-ends relating to code gen and linking.
16 //! This crate mostly exists to make rustc smaller, so we might put
17 //! more 'stuff' here in the future. It does not have a dependency on
20 //! FIXME: Split this into two crates: one that has deps on syntax, and
21 //! one that doesn't; the one that doesn't might get decent parallel
24 #![crate_name = "rustc_back"]
25 #![unstable(feature = "rustc_private", issue = "27812")]
26 #![crate_type = "dylib"]
27 #![crate_type = "rlib"]
28 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
29 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
30 html_root_url = "https://doc.rust-lang.org/nightly/")]
31 #![cfg_attr(not(stage0), deny(warnings))]
33 #![feature(box_syntax)]
36 #![feature(rustc_private)]
37 #![feature(staged_api)]
39 #![cfg_attr(test, feature(test, rand))]
43 extern crate serialize;
44 extern crate rustc_llvm;
45 extern crate rustc_front;
46 #[macro_use] extern crate log;