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 whenevershrink-to-fit
is added without
somewhere in the dependency tree.default-features = false - 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 forT
inVec<T>
and collection elements if T implementsShrinkToFit
.