Crate allocator_fallback
source ·Expand description
This crate provides a minimal fallback for the standard library’s allocator API, which is currently unstable.
Crate features
If the crate feature allocator_api is enabled, this crate will simply
re-export the real allocator API in the standard library. Of course, this
requires Rust nightly.
If the crate feature std is enabled (the default), the crate will use
std; otherwise, it will be no_std. Using std allows
AllocError to implement std::error::Error.
Structs
A fallback for
alloc::alloc::AllocError, which is currently unstable.A fallback for
alloc::alloc::Global, which is currently unstable.Traits
A fallback for
alloc::alloc::Allocator, which is currently unstable.