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