]> git.lizzy.rs Git - rust.git/blob - src/librustc_metadata/lib.rs
Rollup merge of #42037 - nagisa:charpat, r=sfackler
[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 #![feature(sort_unstable)]
33
34 #[macro_use]
35 extern crate log;
36 #[macro_use]
37 extern crate syntax;
38 extern crate syntax_pos;
39 extern crate flate;
40 extern crate serialize as rustc_serialize; // used by deriving
41 extern crate owning_ref;
42 extern crate rustc_errors as errors;
43 extern crate syntax_ext;
44 extern crate proc_macro;
45
46 #[macro_use]
47 extern crate rustc;
48 extern crate rustc_back;
49 extern crate rustc_const_math;
50 extern crate rustc_data_structures;
51
52 mod diagnostics;
53
54 pub use rustc::middle;
55
56 mod astencode;
57 mod index_builder;
58 mod index;
59 mod encoder;
60 mod decoder;
61 mod cstore_impl;
62 mod isolated_encoder;
63 mod schema;
64
65 pub mod creader;
66 pub mod cstore;
67 pub mod locator;
68
69 __build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }