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