Cargo Features

[dependencies]
datasize = { version = "0.2.15", default-features = false, features = ["std", "detailed", "fake_clock-types", "futures-types", "smallvec-types", "tokio-types", "const-generics"] }
default = const-generics, std

These default features are set whenever datasize is added without default-features = false somewhere in the dependency tree.

std default detailed? smallvec-types?
detailed = serde, std

Enables detailed of datasize_derive

Affects datasize::DataSize.estimate_detailed_heap_size, datasize::MemUsageNode, datasize::data_size_detailed

fake_clock-types = fake_instant
futures-types = futures
smallvec-types = smallvec, std
tokio-types = tokio
const-generics default

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

fake_instant fake_clock-types?

Enables fake_instant ^0.4.0

futures futures-types?
serde detailed?
smallvec smallvec-types?
tokio tokio-types?

Enables tokio ^0.2.22