]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
10ba27e38f47c7dc0e1662310dcb27648b678e51
[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 #![cfg_attr(stage0, feature(min_const_fn))]
26 #![feature(nll)]
27 #![feature(slice_patterns)]
28
29 #[macro_use]
30 extern crate bitflags;
31 extern crate serialize;
32 #[macro_use] extern crate log;
33
34 extern crate serialize as rustc_serialize; // used by deriving
35
36 // See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
37 #[allow(unused_extern_crates)]
38 extern crate rustc_cratesio_shim;
39
40 pub mod abi;
41 pub mod spec;