| 1 |
#[allow(unused_imports)] |
| 2 |
#[macro_use] |
| 3 |
extern crate alloc; |
| 4 |
|
| 5 |
#[cfg(test)] |
| 6 |
extern crate siphasher; |
| 7 |
|
| 8 |
// Without this import we get the following error: |
| 9 |
// error[E0599]: no method naemed `powi` found for type `f64` in the current scope |
| 10 |
#[allow(unused_imports)] |
| 11 |
use num_traits::float::FloatCore; |
| 12 |
|
| 13 |
// Wrap core:: modules in namespace |
| 14 |
#[allow(unused_imports)] |
| 15 |
mod stdlib { |
| 16 |
|
| 17 |
pub use core::{ |
| 18 |
cmp, |
| 19 |
convert, |
| 20 |
default, |
| 21 |
fmt, |
| 22 |
hash, |
| 23 |
marker, |
| 24 |
mem, |
| 25 |
num, |
| 26 |
ops, |
| 27 |
iter, |
| 28 |
slice, |
| 29 |
str, |
| 30 |
i8, |
| 31 |
f32, |
| 32 |
f64, |
| 33 |
}; |
| 34 |
|
| 35 |
#[cfg(test)] |
| 36 |
pub use siphasher::sip::SipHasher as DefaultHasher; |
| 37 |
|
| 38 |
pub use alloc::borrow; |
| 39 |
pub use alloc::string; |
| 40 |
pub use alloc::boxed::{self, Box}; |
| 41 |
pub use alloc::vec::{self, Vec}; |
| 42 |
} |