]> git.lizzy.rs Git - rust.git/blob - src/libsyntax/lib.rs
rollup merge of #20608: nikomatsakis/assoc-types-method-dispatch
[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 #![experimental]
19 #![crate_type = "dylib"]
20 #![crate_type = "rlib"]
21 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23        html_root_url = "http://doc.rust-lang.org/nightly/")]
24
25 #![allow(unknown_features)]
26 #![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
27 #![feature(quote, unsafe_destructor)]
28 #![feature(unboxed_closures)]
29 #![feature(old_orphan_check)]
30 #![feature(associated_types)]
31
32 extern crate arena;
33 extern crate fmt_macros;
34 #[phase(plugin, link)] extern crate log;
35 extern crate serialize;
36 extern crate term;
37 extern crate libc;
38
39 extern crate "serialize" as rustc_serialize; // used by deriving
40
41 pub mod util {
42     pub mod interner;
43     #[cfg(test)]
44     pub mod parser_testing;
45     pub mod small_vector;
46 }
47
48 pub mod diagnostics {
49     pub mod macros;
50     pub mod plugin;
51     pub mod registry;
52 }
53
54 pub mod syntax {
55     pub use ext;
56     pub use parse;
57     pub use ast;
58 }
59
60 pub mod abi;
61 pub mod ast;
62 pub mod ast_map;
63 pub mod ast_util;
64 pub mod attr;
65 pub mod codemap;
66 pub mod config;
67 pub mod diagnostic;
68 pub mod feature_gate;
69 pub mod fold;
70 pub mod owned_slice;
71 pub mod parse;
72 pub mod ptr;
73 pub mod show_span;
74 pub mod std_inject;
75 pub mod test;
76 pub mod visit;
77
78 pub mod print {
79     pub mod pp;
80     pub mod pprust;
81 }
82
83 pub mod ext {
84     pub mod asm;
85     pub mod base;
86     pub mod build;
87     pub mod bytes;
88     pub mod cfg;
89     pub mod cfg_attr;
90     pub mod concat;
91     pub mod concat_idents;
92     pub mod deriving;
93     pub mod env;
94     pub mod expand;
95     pub mod fmt;
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 }