#[cfg(unix)]
mod unix;
#[cfg(unix)]
pub use unix::*;
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub use windows::*;
pub(crate) static PLATFORM_ALLOCATOR: PlatformAllocator =
PlatformAllocator::new();
/// Returns a reference to the platform allocator.
///
/// Only available on feature `platform`.
pub const fn platform() -> &'static PlatformAllocator {
&PLATFORM_ALLOCATOR
}