]> git.lizzy.rs Git - rust.git/blob - src/librustc_metadata/lib.rs
Auto merge of #47251 - rkruppe:rm-simd-attr, r=eddyb
[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 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
12        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
13        html_root_url = "https://doc.rust-lang.org/nightly/")]
14 #![deny(warnings)]
15
16 #![feature(box_patterns)]
17 #![feature(conservative_impl_trait)]
18 #![feature(fs_read_write)]
19 #![feature(i128_type)]
20 #![feature(libc)]
21 #![feature(proc_macro_internals)]
22 #![feature(quote)]
23 #![feature(rustc_diagnostic_macros)]
24 #![feature(specialization)]
25 #![feature(rustc_private)]
26
27 extern crate libc;
28 #[macro_use]
29 extern crate log;
30 #[macro_use]
31 extern crate syntax;
32 extern crate syntax_pos;
33 extern crate flate2;
34 extern crate serialize as rustc_serialize; // used by deriving
35 extern crate rustc_errors as errors;
36 extern crate syntax_ext;
37 extern crate proc_macro;
38
39 #[macro_use]
40 extern crate rustc;
41 extern crate rustc_back;
42 extern crate rustc_data_structures;
43
44 mod diagnostics;
45
46 mod astencode;
47 mod index_builder;
48 mod index;
49 mod encoder;
50 mod decoder;
51 mod cstore_impl;
52 mod isolated_encoder;
53 mod schema;
54 mod native_libs;
55 mod link_args;
56
57 pub mod creader;
58 pub mod cstore;
59 pub mod dynamic_lib;
60 pub mod locator;
61
62 #[cfg(not(stage0))] // remove after the next snapshot
63 __build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }