alloc/lib.rs
1//! **This crate is deprecated.** You can now write:
2//!
3//! ```rust
4//! #[cfg(all(feature = "alloc", not(feature = "std")))]
5//! extern crate alloc;
6//! #[cfg(feature = "std")]
7//! extern crate std as alloc;
8//! ```
9
10#![doc(html_root_url = "https://docs.rs/alloc-shim/0.3.5")]
11#![deprecated(since = "0.3.4", note = "this crate is deprecated without replacement")]
12
13#[cfg(all(feature = "alloc", not(feature = "std")))]
14extern crate alloc as alloc_crate;
15
16#[cfg(all(feature = "alloc", not(feature = "std")))]
17pub use alloc_crate::*;
18
19#[cfg(feature = "std")]
20pub use std::{alloc, borrow, boxed, collections, fmt, format, rc, slice, str, string, sync, vec};