Cargo Features

tokio-util has no features set by default.

[dependencies]
tokio-util = { version = "0.7.13", features = ["full", "net", "compat", "codec", "time", "io", "io-util", "rt", "tracing"] }
default

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?
time full? = slab

Enables time of tokio

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

Enables io-util and rt of tokio

rt full? = futures-util, hashbrown

Enables rt of tokio

tokio:

Includes basic task execution capabilities

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.

futures-io compat?
futures-util rt?
slab time?

Enables slab

Backs DelayQueue

tracing implicit feature

Enables tracing

tracing:

Application-level tracing for Rust

hashbrown tokio_unstable rt?

Enables hashbrown ^0.14.0