about summary refs log tree commit diff
path: root/src/librustc_front/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_front/lib.rs')
-rw-r--r--src/librustc_front/lib.rs58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/librustc_front/lib.rs b/src/librustc_front/lib.rs
new file mode 100644
index 00000000000..fae4f157255
--- /dev/null
+++ b/src/librustc_front/lib.rs
@@ -0,0 +1,58 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+//! The Rust compiler.
+//!
+//! # Note
+//!
+//! This API is completely unstable and subject to change.
+
+// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
+#![cfg_attr(stage0, feature(custom_attribute))]
+#![crate_name = "rustc_front"]
+#![unstable(feature = "rustc_private", issue = "27812")]
+#![staged_api]
+#![crate_type = "dylib"]
+#![crate_type = "rlib"]
+#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
+      html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
+      html_root_url = "http://doc.rust-lang.org/nightly/")]
+
+#![feature(associated_consts)]
+#![feature(box_patterns)]
+#![feature(box_syntax)]
+#![feature(const_fn)]
+#![feature(quote)]
+#![feature(rustc_diagnostic_macros)]
+#![feature(rustc_private)]
+#![feature(slice_patterns)]
+#![feature(staged_api)]
+#![feature(str_char)]
+#![feature(filling_drop)]
+#![feature(str_escape)]
+#![cfg_attr(test, feature(test))]
+
+extern crate serialize;
+#[macro_use] extern crate log;
+#[macro_use] extern crate syntax;
+#[macro_use] #[no_link] extern crate rustc_bitflags;
+
+extern crate serialize as rustc_serialize; // used by deriving
+
+pub mod hir;
+pub mod lowering;
+pub mod fold;
+pub mod visit;
+pub mod attr;
+pub mod util;
+
+pub mod print {
+    pub mod pprust;
+}