1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Inspired by Substrate sp-std crate
// see https://github.com/paritytech/substrate/blob/master/primitives/std/with_std.rs

pub mod with_std {
    pub use core::time;
    pub use std::alloc;
    pub use std::any;
    pub use std::borrow;
    pub use std::boxed;
    pub use std::cell;
    pub use std::clone;
    pub use std::cmp;
    pub use std::convert;
    pub use std::default;
    pub use std::fmt;
    pub use std::hash;
    pub use std::iter;
    pub use std::marker;
    pub use std::mem;
    pub use std::num;
    pub use std::ops;
    pub use std::ptr;
    pub use std::rc;
    pub use std::result;
    pub use std::slice;
    pub use std::str;
    pub use std::string;
    pub use std::sync;
    pub use std::vec;

    pub mod collections {
        pub use std::collections::{BTreeMap, HashMap, HashSet};
    }
}