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