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 | mod stable; |
11 | |
12 | #[cfg(feature = "nightly")] |
13 | mod nightly; |
14 | |
15 | #[cfg(not(feature = "nightly"))] |
16 | pub use self::stable::*; |
17 | |
18 | #[cfg(feature = "nightly")] |
19 | pub use self::nightly::*; |
20 |