Cargo Features

tokio-util has no features set by default.

tokio-util = { version = "0.7.10", features = ["full", "net", "compat", "codec", "time", "io", "io-util", "rt"] }

No features on by default

full = codec, compat, io-util, net, rt, time

Shorthand for enabling everything

net full?

Enables net of tokio

compat full? = futures-io
codec full? = tracing
time full? = slab

Enables time of tokio

io io-util?
io-util full? = io

Enables rt and io-util of tokio

rt full? = futures-util, hashbrown

Enables rt and sync of tokio

Features from optional dependencies

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

futures-io compat?

With default (std)

futures-util rt?

With default features

slab time?

With default (std)

tracing codec?

With std

hashbrown cfg(tokio_unstable) rt?

With default features