]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/lib.rs
add trait structs and other changes from V to local
[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 //! rustc_llvm.
19 //!
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
22 //! build speedups.
23
24 #![deny(bare_trait_objects)]
25
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
30 #![feature(box_syntax)]
31 #![feature(const_fn)]
32 #![feature(fs_read_write)]
33 #![feature(inclusive_range)]
34 #![feature(slice_patterns)]
35
36 #[macro_use]
37 extern crate bitflags;
38 extern crate serialize;
39 #[macro_use] extern crate log;
40
41 extern crate serialize as rustc_serialize; // used by deriving
42
43 // See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
44 #[allow(unused_extern_crates)]
45 extern crate rustc_cratesio_shim;
46
47 pub mod abi;
48 pub mod spec;