]> git.proxmox.com Git - rustc.git/blame - src/librustc_metadata/lib.rs
New upstream version 1.12.1+dfsg1
[rustc.git] / src / librustc_metadata / lib.rs
CommitLineData
92a42be0
SL
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
92a42be0
SL
11#![crate_name = "rustc_metadata"]
12#![unstable(feature = "rustc_private", issue = "27812")]
92a42be0
SL
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",
7453a54e
SL
16 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
17 html_root_url = "https://doc.rust-lang.org/nightly/")]
18#![cfg_attr(not(stage0), deny(warnings))]
92a42be0
SL
19
20#![feature(box_patterns)]
21#![feature(enumset)]
22#![feature(quote)]
23#![feature(rustc_diagnostic_macros)]
24#![feature(rustc_private)]
25#![feature(staged_api)]
54a0048b 26#![feature(question_mark)]
92a42be0
SL
27
28#[macro_use] extern crate log;
29#[macro_use] extern crate syntax;
30#[macro_use] #[no_link] extern crate rustc_bitflags;
3157f602 31extern crate syntax_pos;
92a42be0
SL
32extern crate flate;
33extern crate rbml;
a7813a04 34extern crate serialize as rustc_serialize; // used by deriving
3157f602 35extern crate rustc_errors as errors;
92a42be0 36
54a0048b 37#[macro_use]
92a42be0 38extern crate rustc;
3157f602 39extern crate rustc_data_structures;
92a42be0 40extern crate rustc_back;
92a42be0 41extern crate rustc_llvm;
54a0048b 42extern crate rustc_const_math;
92a42be0
SL
43
44pub use rustc::middle;
45
46#[macro_use]
47mod macros;
48
49pub mod diagnostics;
50
51pub mod astencode;
52pub mod common;
a7813a04 53pub mod def_key;
92a42be0
SL
54pub mod tyencode;
55pub mod tydecode;
56pub mod encoder;
57pub mod decoder;
58pub mod creader;
59pub mod csearch;
60pub mod cstore;
61pub mod index;
62pub mod loader;
63pub mod macro_import;
9cc50fc6 64pub mod tls_context;