1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//! **This crate is deprecated.** You can now write:
//!
//! ```rust
//! #[cfg(all(feature = "alloc", not(feature = "std")))]
//! extern crate alloc;
//! #[cfg(feature = "std")]
//! extern crate std as alloc;
//! ```

#![doc(html_root_url = "https://docs.rs/alloc-shim/0.3.5")]
#![deprecated(since = "0.3.4", note = "this crate is deprecated without replacement")]

#[cfg(all(feature = "alloc", not(feature = "std")))]
extern crate alloc as alloc_crate;

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc_crate::*;

#[cfg(feature = "std")]
pub use std::{alloc, borrow, boxed, collections, fmt, format, rc, slice, str, string, sync, vec};