]> git.lizzy.rs Git - rust.git/blob - src/librustc_metadata/lib.rs
Remove rustc_llvm dependency from rustc_metadata
[rust.git] / src / librustc_metadata / lib.rs
1 // Copyright 2015 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 #![crate_name = "rustc_metadata"]
12 #![crate_type = "dylib"]
13 #![crate_type = "rlib"]
14 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
15        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
16        html_root_url = "https://doc.rust-lang.org/nightly/")]
17 #![deny(warnings)]
18
19 #![feature(box_patterns)]
20 #![feature(conservative_impl_trait)]
21 #![feature(core_intrinsics)]
22 #![feature(i128_type)]
23 #![feature(proc_macro_internals)]
24 #![feature(quote)]
25 #![feature(rustc_diagnostic_macros)]
26 #![feature(specialization)]
27 #![feature(discriminant_value)]
28 #![feature(rustc_private)]
29
30 #![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
31 #![cfg_attr(stage0, feature(staged_api))]
32
33 #[macro_use]
34 extern crate log;
35 #[macro_use]
36 extern crate syntax;
37 extern crate syntax_pos;
38 extern crate flate;
39 extern crate serialize as rustc_serialize; // used by deriving
40 extern crate owning_ref;
41 extern crate rustc_errors as errors;
42 extern crate syntax_ext;
43 extern crate proc_macro;
44
45 #[macro_use]
46 extern crate rustc;
47 extern crate rustc_back;
48 extern crate rustc_const_math;
49 extern crate rustc_data_structures;
50
51 mod diagnostics;
52
53 pub use rustc::middle;
54
55 mod astencode;
56 mod index_builder;
57 mod index;
58 mod encoder;
59 mod decoder;
60 mod cstore_impl;
61 mod isolated_encoder;
62 mod schema;
63
64 pub mod creader;
65 pub mod cstore;
66 pub mod locator;
67
68 __build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }