Cargo Features

SmallVec has no features set by default.

[dependencies]
smallvec = { version = "2.0.0-alpha.11", features = ["std", "specialization", "may_dangle", "extract_if", "bytes", "serde", "malloc_size_of"] }
std
specialization
may_dangle
extract_if

Affects smallvec::ExtractIf

Features from optional dependencies

bytes implicit feature

Enables bytes

bytes:

Types and traits for working with bytes

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

malloc_size_of implicit feature

Enables malloc_size_of

malloc_size_of:

A an allocator-agnostic crate for measuring the heap size of a value