blob: cc7a22245dd04b91dceff21f438e81a8ee699e37 [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 Tolnay7fb11e72018-09-06 01:02:27 -070011pub use proc_macro2::{Span, TokenStream as TokenStream2};
12
13pub use span::IntoSpans;
David Tolnay94f06632018-08-31 10:17:17 -070014
Utkarsh Kukretidd3d6fa2018-09-22 11:26:41 +053015#[cfg(all(
16 not(all(target_arch = "wasm32", target_os = "unknown")),
17 feature = "proc-macro"
18))]
David Tolnay18c754c2018-08-21 23:26:58 -040019pub use proc_macro::TokenStream;
David Tolnay7fb11e72018-09-06 01:02:27 -070020
21#[cfg(feature = "printing")]
22pub use quote::{ToTokens, TokenStreamExt};
23
24#[allow(non_camel_case_types)]
25pub type bool = help::Bool;
26#[allow(non_camel_case_types)]
27pub type str = help::Str;
28
29mod help {
30 pub type Bool = bool;
31 pub type Str = str;
32}