Cargo Features

[dependencies]
allocator-api2 = { version = "0.4.0", default-features = false, features = ["std", "alloc", "fresh-rust", "serde"] }
default = std

The std feature is set by default whenever allocator-api2 is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std

Affects allocator-api2::boxed, allocator-api2::vec, allocator-api2::collections

fresh-rust
serde

Enables serde_core

Affects vec::cautious, vec::InPlaceSeed