Cargo Features

[dependencies]
shrink-to-fit = { version = "0.2.10", default-features = false, features = ["derive", "hashbrown", "indexmap", "serde_json", "smallvec", "nightly"] }
default = derive

The derive feature is set by default whenever shrink-to-fit is added without default-features = false somewhere in the dependency tree.

derive default

Enables shrink-to-fit-macro

hashbrown

Enables hashbrown

indexmap

Enables indexmap

serde_json

Enables serde_json

smallvec

Enables smallvec

nightly

Specialization for nightly. ShrinkToFit will be called for T in Vec<T> and collection elements if T implements ShrinkToFit.