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