]> git.lizzy.rs Git - rust.git/blob - src/librustc_metadata/lib.rs
Auto merge of #50710 - Zoxc:value_to_constvalue, r=oli-obk
[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
15 #![feature(box_patterns)]
16 #![feature(fs_read_write)]
17 #![feature(libc)]
18 #![cfg_attr(stage0, feature(macro_lifetime_matcher))]
19 #![feature(proc_macro_internals)]
20 #![feature(quote)]
21 #![feature(rustc_diagnostic_macros)]
22 #![feature(slice_sort_by_cached_key)]
23 #![feature(specialization)]
24 #![feature(rustc_private)]
25
26 extern crate libc;
27 #[macro_use]
28 extern crate log;
29 #[macro_use]
30 extern crate syntax;
31 extern crate syntax_pos;
32 extern crate flate2;
33 extern crate serialize as rustc_serialize; // used by deriving
34 extern crate rustc_errors as errors;
35 extern crate syntax_ext;
36 extern crate proc_macro;
37
38 #[macro_use]
39 extern crate rustc;
40 extern crate rustc_target;
41 #[macro_use]
42 extern crate rustc_data_structures;
43
44 mod diagnostics;
45
46 mod index_builder;
47 mod index;
48 mod encoder;
49 mod decoder;
50 mod cstore_impl;
51 mod isolated_encoder;
52 mod schema;
53 mod native_libs;
54 mod link_args;
55 mod foreign_modules;
56
57 pub mod creader;
58 pub mod cstore;
59 pub mod dynamic_lib;
60 pub mod locator;
61
62 __build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }