#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(not(feature = "std"))]
extern crate alloc;
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(feature = "std")] {
pub use std::{
borrow,
boxed,
format,
string,
vec,
};
pub mod collections {
pub use self::{
binary_heap::BinaryHeap,
btree_map::BTreeMap,
btree_set::BTreeSet,
linked_list::LinkedList,
vec_deque::VecDeque,
Bound,
};
pub use std::collections::*;
}
} else {
pub use alloc::{
borrow,
boxed,
format,
string,
vec,
};
pub mod collections {
pub use self::{
BTreeMap,
BTreeSet,
BinaryHeap,
LinkedList,
VecDeque,
};
pub use alloc::collections::*;
pub use core::ops::Bound;
}
}
}