1#[cfg(feature = "ahash")]
5pub use ahash::RandomState;
6
7#[cfg(all(not(feature = "ahash"), feature = "std"))]
10pub use std::collections::hash_map::RandomState;
11
12#[cfg(not(any(feature = "ahash", feature = "std")))]
14compile_error!("weak-table: no_std requires that you enable the `ahash` feature.");
15
16#[cfg(feature = "std")]
18mod lib {
19 extern crate std;
20 pub use std::*;
21}
22
23#[cfg(not(feature = "std"))]
25mod lib {
26 extern crate alloc;
27 pub use alloc::*;
28}
29
30pub use lib::{
32 boxed::Box,
33 rc,
34 slice,
35 string::String,
36 sync,
37 vec::{self, Vec},
38};
39
40pub use core::{
42 borrow::Borrow,
43 cmp::max,
44 hash::{BuildHasher, Hash, Hasher},
45 iter::{self, FromIterator},
46 fmt::{self, Debug, Formatter},
47 mem,
48 ops::{self, Deref, Index, IndexMut},
49};
50
51#[cfg(test)]
53extern crate std;
54
55#[cfg(test)]
56pub use std::eprintln;