Cargo Features

[dependencies]
flex-alloc = { version = "0.0.3", default-features = false, features = ["std", "alloc", "allocator-api2", "nightly", "zeroize"] }
default = alloc, zeroize

These default features are set whenever flex-alloc is added without default-features = false somewhere in the dependency tree.

std = alloc

Enables std of optional allocator-api2 and optional zeroize

alloc default std?

Enables alloc of optional allocator-api2 and optional zeroize

Affects vec::ThinVec, vec::from_array, vec::from_elem

allocator-api2 nightly?

Enables allocator-api2

nightly

Enables nightly of allocator-api2

zeroize default

Enables zeroize

Affects alloc::ZeroizingAlloc, vec::ZeroizingVec