Crate features / tokio-util
Feature flags · tokio-util 0.7.20 · from crates.io 2026-10-24
tokio-util features: what each one does, and the line to copy
Short answertokio-util 0.7.20 has 10 features. Nothing is on by default: turn on what you use. It needs Rust 1.85 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
__docs_rs | futures-util | |
codec | libc | |
compat | futures-io | |
full | codec, compat, io-util, time, net, rt, join-map | |
io | nothing else (a switch the code checks) | |
io-util | io, tokio/rt, tokio/io-util | |
join-map | rt, hashbrown | |
net | tokio/net | |
rt | tokio/rt, tokio/sync, futures-util | |
time | tokio/time, slab |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version tokio-util declares (rust-version), and the release that changed it:
- 0.7.0 (2022-02-10): Rust 1.49
- 0.6.10 (2022-05-14): no rust-version declared
- 0.7.2 (2022-05-15): Rust 1.49
- 0.7.8 (2023-04-25): Rust 1.56
- 0.7.11 (2024-05-04): Rust 1.63
- 0.7.12 (2024-09-04): Rust 1.70
- 0.7.17 (2025-11-02): Rust 1.71
- 0.7.20 (2026-10-09): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tokio-util --precise <version>, or use resolver 3, which picks compatible versions for you.
More on tokio-util
Real downloads, dependents and alternatives: tokio-util crate data (2.3M real downloads a day, 8,109 dependents).
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on ittokio-util crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?