#[cfg(feature = "ahash")]
pub use ahash::RandomState;
#[cfg(all(not(feature = "ahash"), feature = "std"))]
pub use std::collections::hash_map::RandomState;
#[cfg(not(any(feature = "ahash", feature = "std")))]
compile_error!("weak-table: no_std requires that you enable the `ahash` feature.");
#[cfg(feature = "std")]
mod lib {
extern crate std;
pub use std::*;
}
#[cfg(not(feature = "std"))]
mod lib {
extern crate alloc;
pub use alloc::*;
}
pub use lib::{
boxed::Box,
rc,
slice,
string::String,
sync,
vec::{self, Vec},
};
pub use core::{
borrow::Borrow,
cmp::max,
hash::{BuildHasher, Hash, Hasher},
iter::{self, FromIterator},
fmt::{self, Debug, Formatter},
mem,
ops::{self, Deref, Index, IndexMut},
};
#[cfg(test)]
extern crate std;
#[cfg(test)]
pub use std::eprintln;