]> git.proxmox.com Git - rustc.git/blob - src/librustc_trans/lib.rs
Imported Upstream version 1.7.0+dfsg1
[rustc.git] / src / librustc_trans / 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 //! The Rust compiler.
12 //!
13 //! # Note
14 //!
15 //! This API is completely unstable and subject to change.
16
17 #![crate_name = "rustc_trans"]
18 #![unstable(feature = "rustc_private", issue = "27812")]
19 #![crate_type = "dylib"]
20 #![crate_type = "rlib"]
21 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
23 html_root_url = "https://doc.rust-lang.org/nightly/")]
24
25 #![feature(box_patterns)]
26 #![feature(box_syntax)]
27 #![feature(const_fn)]
28 #![feature(custom_attribute)]
29 #![allow(unused_attributes)]
30 #![feature(iter_arith)]
31 #![feature(libc)]
32 #![feature(quote)]
33 #![feature(rustc_diagnostic_macros)]
34 #![feature(rustc_private)]
35 #![feature(slice_patterns)]
36 #![feature(staged_api)]
37 #![feature(unicode)]
38
39 #![allow(trivial_casts)]
40
41 extern crate arena;
42 extern crate flate;
43 extern crate getopts;
44 extern crate graphviz;
45 extern crate libc;
46 extern crate rustc;
47 extern crate rustc_back;
48 extern crate rustc_data_structures;
49 extern crate rustc_front;
50 extern crate rustc_llvm as llvm;
51 extern crate rustc_mir;
52 extern crate rustc_platform_intrinsics as intrinsics;
53 extern crate serialize;
54
55 #[macro_use] extern crate log;
56 #[macro_use] extern crate syntax;
57
58 pub use rustc::session;
59 pub use rustc::middle;
60 pub use rustc::lint;
61 pub use rustc::util;
62
63 pub mod back {
64 pub use rustc_back::abi;
65 pub use rustc_back::rpath;
66 pub use rustc_back::svh;
67
68 pub mod archive;
69 pub mod linker;
70 pub mod link;
71 pub mod lto;
72 pub mod write;
73 pub mod msvc;
74 }
75
76 pub mod diagnostics;
77
78 pub mod trans;
79 pub mod save;
80
81 pub mod lib {
82 pub use llvm;
83 }
84
85 __build_diagnostic_array! { librustc_trans, DIAGNOSTICS }