]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
Auto merge of #23678 - richo:check-flightcheck, r=alexcrichton
[rust.git] / src / libsyntax / lib.rs
1 // Copyright 2012-2013 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 //! The Rust parser and macro expander.
12 //!
13 //! # Note
14 //!
15 //! This API is completely unstable and subject to change.
16
17 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
18 #![cfg_attr(stage0, feature(custom_attribute))]
19 #![crate_name = "syntax"]
20 #![unstable(feature = "rustc_private")]
21 #![staged_api]
22 #![crate_type = "dylib"]
23 #![crate_type = "rlib"]
24 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
25        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
26        html_root_url = "http://doc.rust-lang.org/nightly/")]
27
28 #![feature(box_patterns)]
29 #![feature(box_syntax)]
30 #![feature(collections)]
31 #![feature(core)]
32 #![feature(libc)]
33 #![feature(old_path)]
34 #![feature(quote, unsafe_destructor)]
35 #![feature(rustc_private)]
36 #![feature(staged_api)]
37 #![feature(unicode)]
38 #![feature(path_ext)]
39 #![feature(str_char)]
40 #![feature(convert)]
41 #![feature(into_cow)]
42 #![feature(slice_patterns)]
43
44 extern crate arena;
45 extern crate fmt_macros;
46 extern crate serialize;
47 extern crate term;
48 extern crate libc;
49 #[macro_use] extern crate log;
50 #[macro_use] #[no_link] extern crate rustc_bitflags;
51
52 extern crate serialize as rustc_serialize; // used by deriving
53
54 pub mod util {
55     pub mod interner;
56     #[cfg(test)]
57     pub mod parser_testing;
58     pub mod small_vector;
59 }
60
61 pub mod diagnostics {
62     pub mod macros;
63     pub mod plugin;
64     pub mod registry;
65 }
66
67 pub mod syntax {
68     pub use ext;
69     pub use parse;
70     pub use ast;
71 }
72
73 pub mod abi;
74 pub mod ast;
75 pub mod ast_map;
76 pub mod ast_util;
77 pub mod attr;
78 pub mod codemap;
79 pub mod config;
80 pub mod diagnostic;
81 pub mod feature_gate;
82 pub mod fold;
83 pub mod owned_slice;
84 pub mod parse;
85 pub mod ptr;
86 pub mod show_span;
87 pub mod std_inject;
88 pub mod test;
89 pub mod visit;
90
91 pub mod print {
92     pub mod pp;
93     pub mod pprust;
94 }
95
96 pub mod ext {
97     pub mod asm;
98     pub mod base;
99     pub mod build;
100     pub mod cfg;
101     pub mod concat;
102     pub mod concat_idents;
103     pub mod deriving;
104     pub mod env;
105     pub mod expand;
106     pub mod format;
107     pub mod log_syntax;
108     pub mod mtwt;
109     pub mod quote;
110     pub mod source_util;
111     pub mod trace_macros;
112
113     pub mod tt {
114         pub mod transcribe;
115         pub mod macro_parser;
116         pub mod macro_rules;
117     }
118 }