]> git.proxmox.com Git - rustc.git/blob - src/librustc_back/lib.rs
297041a99079072577940109fe7e01c2dded21d3
[rustc.git] / src / librustc_back / 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_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
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 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
25 #![cfg_attr(stage0, feature(custom_attribute))]
26 #![crate_name = "rustc_back"]
27 #![unstable(feature = "rustc_private")]
28 #![staged_api]
29 #![crate_type = "dylib"]
30 #![crate_type = "rlib"]
31 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
32 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
33 html_root_url = "http://doc.rust-lang.org/nightly/")]
34
35 #![feature(box_syntax)]
36 #![feature(fs_canonicalize)]
37 #![feature(libc)]
38 #![feature(path_ext)]
39 #![feature(rand)]
40 #![feature(rustc_private)]
41 #![feature(slice_bytes)]
42 #![feature(staged_api)]
43 #![feature(step_by)]
44 #![feature(vec_push_all)]
45 #![cfg_attr(test, feature(test, rand))]
46
47 extern crate syntax;
48 extern crate libc;
49 extern crate serialize;
50 extern crate rustc_llvm;
51 #[macro_use] extern crate log;
52
53 pub mod abi;
54 pub mod archive;
55 pub mod tempdir;
56 pub mod arm;
57 pub mod mips;
58 pub mod mipsel;
59 pub mod rpath;
60 pub mod sha2;
61 pub mod svh;
62 pub mod target_strs;
63 pub mod x86;
64 pub mod x86_64;
65 pub mod target;