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
//! Compatibility layer for `no_std` compilations.
// file come from string-interner crate

use cfg_if::cfg_if;

pub use ::hashbrown::{
    hash_map,
    hash_map::{DefaultHashBuilder, HashMap},
};

cfg_if! {
    if #[cfg(feature = "std")] {
        pub use ::std::{
            vec,
            vec::Vec,
            string::{String, ToString},
            boxed::Box,
        };
    } else {
        extern crate alloc;
        pub use self::alloc::{
            vec,
            vec::Vec,
            string::{String, ToString},
            boxed::Box,
        };
    }
}