]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
Set allow(unstable) in crates that use unstable features
[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]
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 #![allow(unknown_features)]
27 #![feature(slicing_syntax)]
28 #![feature(box_syntax)]
29 #![feature(quote, unsafe_destructor)]
30 #![allow(unknown_features)] #![feature(int_uint)]
31 #![allow(unstable)]
32
33 extern crate arena;
34 extern crate fmt_macros;
35 extern crate serialize;
36 extern crate term;
37 extern crate libc;
38 #[macro_use] extern crate log;
39 #[macro_use] #[no_link] extern crate rustc_bitflags;
40
41 extern crate "serialize" as rustc_serialize; // used by deriving
42
43 pub mod util {
44     pub mod interner;
45     #[cfg(test)]
46     pub mod parser_testing;
47     pub mod small_vector;
48 }
49
50 pub mod diagnostics {
51     pub mod macros;
52     pub mod plugin;
53     pub mod registry;
54 }
55
56 pub mod syntax {
57     pub use ext;
58     pub use parse;
59     pub use ast;
60 }
61
62 pub mod abi;
63 pub mod ast;
64 pub mod ast_map;
65 pub mod ast_util;
66 pub mod attr;
67 pub mod codemap;
68 pub mod config;
69 pub mod diagnostic;
70 pub mod feature_gate;
71 pub mod fold;
72 pub mod owned_slice;
73 pub mod parse;
74 pub mod ptr;
75 pub mod show_span;
76 pub mod std_inject;
77 pub mod test;
78 pub mod visit;
79
80 pub mod print {
81     pub mod pp;
82     pub mod pprust;
83 }
84
85 pub mod ext {
86     pub mod asm;
87     pub mod base;
88     pub mod build;
89     pub mod cfg;
90     pub mod cfg_attr;
91     pub mod concat;
92     pub mod concat_idents;
93     pub mod deriving;
94     pub mod env;
95     pub mod expand;
96     pub mod format;
97     pub mod log_syntax;
98     pub mod mtwt;
99     pub mod quote;
100     pub mod source_util;
101     pub mod trace_macros;
102
103     pub mod tt {
104         pub mod transcribe;
105         pub mod macro_parser;
106         pub mod macro_rules;
107     }
108 }