/src/libsyntax/lib.rs

https://gitlab.com/pranith/rust · Rust · 117 lines · 90 code · 12 blank · 15 comment · 0 complexity · 8425d67204688573cd8c125f1572f2ea MD5 · raw file

  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. //! The Rust parser and macro expander.
  11. //!
  12. //! # Note
  13. //!
  14. //! This API is completely unstable and subject to change.
  15. // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
  16. #![cfg_attr(stage0, feature(custom_attribute))]
  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. #![feature(box_patterns)]
  26. #![feature(box_syntax)]
  27. #![feature(collections)]
  28. #![feature(core)]
  29. #![feature(libc)]
  30. #![feature(old_path)]
  31. #![feature(quote, unsafe_destructor)]
  32. #![feature(rustc_private)]
  33. #![feature(staged_api)]
  34. #![feature(unicode)]
  35. #![feature(path_ext)]
  36. #![feature(str_char)]
  37. #![feature(into_cow)]
  38. #![feature(slice_patterns)]
  39. extern crate arena;
  40. extern crate fmt_macros;
  41. extern crate serialize;
  42. extern crate term;
  43. extern crate libc;
  44. #[macro_use] extern crate log;
  45. #[macro_use] #[no_link] extern crate rustc_bitflags;
  46. extern crate serialize as rustc_serialize; // used by deriving
  47. pub mod util {
  48. pub mod interner;
  49. #[cfg(test)]
  50. pub mod parser_testing;
  51. pub mod small_vector;
  52. }
  53. pub mod diagnostics {
  54. pub mod macros;
  55. pub mod plugin;
  56. pub mod registry;
  57. }
  58. pub mod syntax {
  59. pub use ext;
  60. pub use parse;
  61. pub use ast;
  62. }
  63. pub mod abi;
  64. pub mod ast;
  65. pub mod ast_map;
  66. pub mod ast_util;
  67. pub mod attr;
  68. pub mod codemap;
  69. pub mod config;
  70. pub mod diagnostic;
  71. pub mod feature_gate;
  72. pub mod fold;
  73. pub mod owned_slice;
  74. pub mod parse;
  75. pub mod ptr;
  76. pub mod show_span;
  77. pub mod std_inject;
  78. pub mod test;
  79. pub mod visit;
  80. pub mod print {
  81. pub mod pp;
  82. pub mod pprust;
  83. }
  84. pub mod ext {
  85. pub mod asm;
  86. pub mod base;
  87. pub mod build;
  88. pub mod cfg;
  89. pub mod concat;
  90. pub mod concat_idents;
  91. pub mod deriving;
  92. pub mod env;
  93. pub mod expand;
  94. pub mod format;
  95. pub mod log_syntax;
  96. pub mod mtwt;
  97. pub mod quote;
  98. pub mod source_util;
  99. pub mod trace_macros;
  100. pub mod tt {
  101. pub mod transcribe;
  102. pub mod macro_parser;
  103. pub mod macro_rules;
  104. }
  105. }