| 1 | //! |
|---|---|
| 2 | //! allocator-api2 crate. |
| 3 | //! |
| 4 | #![cfg_attr(not(feature = "std"), no_std)] |
| 5 | |
| 6 | #[cfg(feature = "alloc")] |
| 7 | extern crate alloc as alloc_crate; |
| 8 | |
| 9 | #[cfg(not(feature = "nightly"))] |
| 10 | #[macro_use] |
| 11 | mod stable; |
| 12 | |
| 13 | #[cfg(feature = "nightly")] |
| 14 | mod nightly; |
| 15 | |
| 16 | #[cfg(not(feature = "nightly"))] |
| 17 | pub use self::stable::*; |
| 18 | |
| 19 | #[cfg(feature = "nightly")] |
| 20 | pub use self::nightly::*; |
| 21 |
