blob: 8e270bd017a54a8f08cd68f4382edbad9cb0349b [file] [log] [blame]
David Tolnay7fb11e72018-09-06 01:02:27 -07001pub use std::clone::Clone;
2pub use std::cmp::{Eq, PartialEq};
3pub use std::convert::From;
4pub use std::default::Default;
5pub use std::fmt::{self, Debug, Formatter};
6pub use std::hash::{Hash, Hasher};
7pub use std::marker::Copy;
8pub use std::option::Option::{None, Some};
David Tolnay18c754c2018-08-21 23:26:58 -04009pub use std::result::Result::{Err, Ok};
10
David Tolnaye0ba9202018-10-06 20:09:08 -070011#[cfg(feature = "printing")]
12pub extern crate quote;
13
David Tolnay7fb11e72018-09-06 01:02:27 -070014pub use proc_macro2::{Span, TokenStream as TokenStream2};
15
16pub use span::IntoSpans;
David Tolnay94f06632018-08-31 10:17:17 -070017
Utkarsh Kukretidd3d6fa2018-09-22 11:26:41 +053018#[cfg(all(
19 not(all(target_arch = "wasm32", target_os = "unknown")),
20 feature = "proc-macro"
21))]
David Tolnay18c754c2018-08-21 23:26:58 -040022pub use proc_macro::TokenStream;
David Tolnay7fb11e72018-09-06 01:02:27 -070023
24#[cfg(feature = "printing")]
25pub use quote::{ToTokens, TokenStreamExt};
26
27#[allow(non_camel_case_types)]
28pub type bool = help::Bool;
29#[allow(non_camel_case_types)]
30pub type str = help::Str;
31
32mod help {
33 pub type Bool = bool;
34 pub type Str = str;
35}