Cargo Features

[dependencies]
allocator-api2 = { version = "0.2.21", 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 stable::boxed, stable::vec, stable::collections

nightly fresh-rust

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects vec::cautious, vec::InPlaceSeed