]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
Separate codepaths for fat and thin LTO in write.rs
[rust.git] / src / librustc_target / lib.rs
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
11 //! Some stuff used by rustc that doesn't have many dependencies
12 //!
13 //! Originally extracted from rustc::back, which was nominally the
14 //! compiler 'backend', though LLVM is rustc's backend, so rustc_target
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
18 //! LLVM.
19
20 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
21       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
22       html_root_url = "https://doc.rust-lang.org/nightly/")]
23
24 #![feature(box_syntax)]
25 #![feature(nll)]
26 #![feature(rustc_attrs)]
27 #![feature(slice_patterns)]
28 #![feature(step_trait)]
29
30 #[macro_use]
31 extern crate bitflags;
32 extern crate serialize;
33 #[macro_use] extern crate log;
34
35 extern crate serialize as rustc_serialize; // used by deriving
36
37 // See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
38 #[allow(unused_extern_crates)]
39 extern crate rustc_cratesio_shim;
40
41 #[macro_use]
42 extern crate rustc_data_structures;
43
44 pub mod abi;
45 pub mod spec;