]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
73424136cfbcb44594e0f6d964197b45dcaec803
[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 #![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
27
28 #![feature(box_syntax)]
29 #![feature(collections)]
30 #![feature(core)]
31 #![feature(hash)]
32 #![feature(int_uint)]
33 #![feature(io)]
34 #![feature(libc)]
35 #![feature(os)]
36 #![feature(path)]
37 #![feature(quote, unsafe_destructor)]
38 #![feature(rustc_private)]
39 #![feature(slicing_syntax)]
40 #![feature(staged_api)]
41 #![feature(std_misc)]
42 #![feature(unicode)]
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 cfg_attr;
102     pub mod concat;
103     pub mod concat_idents;
104     pub mod deriving;
105     pub mod env;
106     pub mod expand;
107     pub mod format;
108     pub mod log_syntax;
109     pub mod mtwt;
110     pub mod quote;
111     pub mod source_util;
112     pub mod trace_macros;
113
114     pub mod tt {
115         pub mod transcribe;
116         pub mod macro_parser;
117         pub mod macro_rules;
118     }
119 }