Cargo Features

[dependencies]
allocator-api2 = { version = "0.2.18", default-features = false, features = ["std", "alloc", "nightly", "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 stable::boxed, stable::vec

nightly

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects vec::cautious, vec::InPlaceSeed