Cargo Features
[dependencies]
deallocate-zeroed = { version = "0.1.0", default-features = false, features = ["allocator_api", "allocator_api2", "zero_aware_allocator"] }
- default = allocator_api2, zero_aware_allocator
-
These default features are set whenever
deallocate-zeroed
is added without
somewhere in the dependency tree.default-features = false - allocator_api
-
Enable usage of the unstable, nightly-only
core::alloc::Allocator
Rust feature. - allocator_api2 default
-
Enable usage of the stable polyfill for the
core::alloc::Allocator
Rust feature.Enables allocator-api2
- zero_aware_allocator default
-
Enable the zero-aware allocator that wraps an underlying allocator and additionally keeps track of which memory blocks are already zeroed. This lets you move zeroing for
allocate_zeroed
from allocation time and to deallocation time, which is useful whenallocate_zeroed
is on your application's critical path but deallocation is not.Enables intrusive_splay_tree