Crate features / tokio
Feature flags · tokio 1.54.1 · from crates.io 2026-10-24
tokio features: what each one does, and the line to copy
Short answertokio 1.54.1 has 16 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 |
|---|---|---|
fs | nothing else (a switch the code checks) | |
full | fs, io-util, io-std, macros, net, parking_lot, process, rt, rt-multi-thread, signal, sync, time | |
io-std | nothing else (a switch the code checks) | |
io-uring | dep:io-uring, libc, mio/os-poll, mio/os-ext, dep:slab | |
io-util | bytes | |
macros | tokio-macros | |
net | libc, mio/os-poll, mio/os-ext, mio/net, socket2, windows-sys/Win32_Foundation, windows-sys/Win32_Security, windows-sys/Win32_Storage_FileSystem, windows-sys/Win32_System_Pipes, windows-sys/Win32_System_SystemServices | |
process | bytes, libc, mio/os-poll, mio/os-ext, mio/net, signal-hook-registry, windows-sys/Win32_Foundation, windows-sys/Win32_System_Threading, windows-sys/Win32_System_WindowsProgramming | |
rt | nothing else (a switch the code checks) | |
rt-multi-thread | rt | |
schedule-latency | nothing else (a switch the code checks) | |
signal | libc, mio/os-poll, mio/net, mio/os-ext, signal-hook-registry, windows-sys/Win32_Foundation, windows-sys/Win32_System_Console | |
sync | nothing else (a switch the code checks) | |
taskdump | dep:backtrace | |
test-util | rt, sync, time | |
time | nothing else (a switch the code checks) |
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 declares (rust-version), and the release that changed it:
- 1.32.1 (2023-12-19): Rust 1.63
- 1.39.1 (2024-07-23): Rust 1.70
- 1.38.2 (2025-04-03): Rust 1.63
- 1.43.1 (2025-04-04): Rust 1.70
- 1.48.0 (2025-10-14): Rust 1.71
- 1.43.3 (2025-10-14): Rust 1.70
- 1.49.0 (2026-01-03): Rust 1.71
- 1.47.4 (2026-04-02): Rust 1.70
- 1.51.0 (2026-04-03): Rust 1.71
- 1.47.5 (2026-05-07): Rust 1.70
- 1.51.3 (2026-05-08): Rust 1.71
- 1.54.1 (2026-10-21): Rust 1.85
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tokio --precise <version>, or use resolver 3, which picks compatible versions for you.
More on tokio
Real downloads, dependents and alternatives: tokio crate data (3.1M real downloads a day, 78,796 dependents).
Security record: tokio advisories.
docs.rs feature list · crates.io · license MIT · edition 2021
Up next
Before you depend on ittokio crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?