std_shims/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(feature = "std")]
4extern crate std;
5
6#[cfg(not(feature = "std"))]
7extern crate alloc;
8
9#[cfg(not(feature = "std"))]
10pub use alloc::{
11    boxed::Box,
12    collections::{BTreeMap, BTreeSet},
13    rc::Rc,
14    string::{String, ToString},
15    vec,
16    vec::Vec,
17};
18#[cfg(feature = "std")]
19pub use std::{
20    boxed::Box,
21    collections::{BTreeMap, BTreeSet},
22    rc::Rc,
23    string::{String, ToString},
24    vec,
25    vec::Vec,
26};