Cargo Features

[dependencies]
deadpool = { version = "0.10.0", default-features = false, features = ["managed", "unmanaged", "rt_tokio_1", "rt_async-std_1", "serde"] }
default = managed, unmanaged

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

managed default = async-trait

Affects deadpool::managed

unmanaged default

Affects deadpool::unmanaged

rt_tokio_1

Enables tokio_1 of deadpool-runtime

rt_async-std_1 feature

rt_async-std_1

Enables async-std_1 of deadpool-runtime

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

async-trait managed

Enables async-trait

managed feature

serde implicit feature

Enables serde

serde feature