| 1 | pub use std::clone::Clone; |
| 2 | pub use std::cmp::{Eq, PartialEq}; |
| 3 | pub use std::default::Default; |
| 4 | pub use std::fmt::{self, Debug, Formatter}; |
| 5 | pub use std::hash::{Hash, Hasher}; |
| 6 | pub use std::marker::Copy; |
| 7 | pub use std::option::Option::{None, Some}; |
| 8 | pub use std::result::Result::{Err, Ok}; |
| 9 | |
| 10 | #[cfg (feature = "printing" )] |
| 11 | pub extern crate quote; |
| 12 | |
| 13 | pub use proc_macro2::{Span, TokenStream as TokenStream2}; |
| 14 | |
| 15 | #[cfg (feature = "parsing" )] |
| 16 | pub use crate::group::{parse_braces, parse_brackets, parse_parens}; |
| 17 | |
| 18 | pub use crate::span::IntoSpans; |
| 19 | |
| 20 | #[cfg (all( |
| 21 | not(all(target_arch = "wasm32" , any(target_os = "unknown" , target_os = "wasi" ))), |
| 22 | feature = "proc-macro" |
| 23 | ))] |
| 24 | pub use proc_macro::TokenStream; |
| 25 | |
| 26 | #[cfg (feature = "printing" )] |
| 27 | pub use quote::{ToTokens, TokenStreamExt}; |
| 28 | |
| 29 | #[allow (non_camel_case_types)] |
| 30 | pub type bool = help::Bool; |
| 31 | #[allow (non_camel_case_types)] |
| 32 | pub type str = help::Str; |
| 33 | |
| 34 | mod help { |
| 35 | pub type Bool = bool; |
| 36 | pub type Str = str; |
| 37 | } |
| 38 | |
| 39 | pub struct private(pub(crate) ()); |
| 40 | |