tokio breaking changes
Updated December 4, 2026
On this page
Latest version 1.54.1, released October 21, 2026. Source repository
Its 0.3.0 release requires Rust 1.45 or later. Rust end of life dates.
- From 0.3.0 to 1.54.0: 47 breaking changes in 21 versions.
- From 0.2.0 to 1.54.0: 77 breaking changes in 22 versions.
tokio 1.54.0 breaking changes
- Behavior changed
Creating an in-memory pipe with zero capacity now panics. Callers must use a nonzero capacity. github.com - Behavior changed
BufReader
Creating a BufReader with zero capacity now panics. Callers must use a nonzero capacity. github.com - Behavior changed
BufStream
Creating a BufStream with zero capacity now panics. Callers must use a nonzero capacity. github.com - Behavior changed
copy_bidirectional_with_sizes
A zero buffer size passed to copy_bidirectional_with_sizes is now rejected. Callers must pass nonzero sizes. github.com - Behavior changed
File.set_max_buf_size
Passing zero to File::set_max_buf_size is now rejected. Callers must pass a nonzero buffer size. github.com - Behavior changed
max_io_events_per_tick
Setting max_io_events_per_tick to zero now panics. Callers must use a nonzero value. github.com - Configuration changed
The minimum supported Rust compiler version is now 1.85. Projects on older Rust toolchains must upgrade before building against this release. github.com
tokio 1.53.0 breaking changes
- Behavior changed
mpsc.Receiver
A Receiver now drops its stored waker when it is dropped, even if senders still exist. Code that relied on the previous waker behavior may need review. github.com - Behavior changed
mpsc.UnboundedReceiver
An UnboundedReceiver now drops its stored waker when it is dropped, even if senders still exist. Code that relied on the previous waker behavior may need review. github.com
tokio 1.52.3 breaking changes
- Behavior changed
RwLock
Creating an RwLock with max_readers set to 0 is no longer allowed. Code that passes 0 must use a non-zero value. github.com - Behavior changed
try_recv
When an mpsc channel is closed while permits are still outstanding, try_recv now returns Empty instead of the previous result. Code that matches on that result may need to change. github.com
tokio 1.52.2 breaking changes
- Behavior changed
The LIFO slot stealing change from 1.51.0 is reverted, so task scheduling returns to its earlier behavior. Code that depended on the 1.51.0 scheduling order may observe different timing. github.com
tokio 1.51.3 breaking changes
- Behavior changed
RwLock
An RwLock with max_readers of 0 is now rejected, where previously it was accepted. Code that constructs an RwLock with zero max readers must pass a non-zero value. github.com - Behavior changed
try_recv
After an mpsc channel is closed while permits are still outstanding, try_recv() now returns Empty rather than Disconnected. Code that matches on Disconnected to detect closure must be updated. github.com
tokio 1.51.0 breaking changes
- Behavior changed
Work-stealing workers can now take tasks from the LIFO slot, so task execution order and placement may differ from before. Review code that depends on task ordering or scheduling timing. github.com
Older versions
18 older versions, each with its first changes. Sign up to see every change
Show 18 older versions
tokio 1.50.0 breaking changes
- Behavior changed
The default runtime thread name is now shorter to fit the Linux limit. Code that depends on the old default thread name must be updated. github.com - Behavior changed
event_interval
Setting the runtime event_interval to 0 now panics instead of being accepted. Make sure the value is never 0. github.com
tokio 1.49.0 breaking changes
- Signature changed
tokio::io::AsyncWrite::poll_flush
Was fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; now fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>>. crates.io - Signature changed
tokio::io::AsyncWrite::poll_shutdown
Was fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), io::Error>>; now fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>>. crates.io
And 2 more in this version.
tokio 1.48.0 breaking changes
- Configuration changed
Users on older Rust compilers must upgrade to Rust 1.71 or later to build this release. github.com - Configuration changed
Builds that set --cfg flags for these unstable features must switch to the corresponding cargo features. github.com
And 1 more in this version.
tokio 1.47.5 breaking changes
- Behavior changed
RwLock
An RwLock must now have a max_readers value other than zero. Code that configures zero max readers must switch to a nonzero value. github.com - Behavior changed
try_recv
When an mpsc channel is closed while permits are still outstanding, try_recv now returns Empty. Code that matches on the error from try_recv must account for this. github.com
tokio 1.46.0 breaking changes
- Behavior changed
LocalSet.{poll,drop}
Blocking inside LocalSet::poll or LocalSet::drop is no longer allowed. Code that blocks in those paths must be changed to avoid blocking. github.com - Signature changed
runtime.Builder.build_local
The LocalOptions parameter to runtime::Builder::build_local is now passed by value instead of by reference. This is an unstable API, and callers must update the argument. github.com
tokio 1.45.0 breaking changes
- Removed
alt multi-threaded runtime
The unstable alt multi-threaded runtime was removed in this release. Code that uses it under tokio_unstable must switch to another runtime. github.com
tokio 1.44.0 breaking changes
- Behavior changed
from_std
Passing a blocking socket to from_std on sockets now panics instead of hanging at runtime. Pass a non-blocking socket instead. github.com - Behavior changed
select!
select! now respects the task budget, so it may yield where it previously did not. Code relying on its exact scheduling may need review. github.com
tokio 1.43.4 breaking changes
- Behavior changed
Receiver.try_recv
After Receiver::close, Receiver::try_recv now returns TryRecvError::Disconnected. Code that matches on the error from try_recv after close should check for this variant. github.com
tokio 1.41.0 breaking changes
- Renamed
Several unstable histogram metrics APIs were renamed, so code calling the old names must switch to the new names. github.com - Behavior changed
broadcast.Receiver
Broadcast receiver operations can now yield to the scheduler, so code that assumed they always complete immediately may see different timing. github.com
And 1 more in this version.
tokio 1.40.0 breaking changes
- Signature changed
task.Id
task::Id is now backed by NonZeroU64 instead of a plain u64, so code that relies on the old integer type must be updated. github.com
tokio 1.39.0 breaking changes
- Behavior changed
The crate now requires Rust 1.70 or later to build, so older toolchains will no longer compile it. github.com - Behavior changed
copy
copy now reads from the source while writing to the destination, which changes how I/O interleaves for existing callers. github.com
And 1 more in this version.
tokio 1.38.0 breaking changes
- Behavior changed
global_queue_interval
The runtime now panics if global_queue_interval is set to zero. Code that sets it to zero must use a non-zero value. github.com - Behavior changed
oneshot receiver
A oneshot receiver now drops any unreceived message when the receiver is dropped. Code that relies on the message staying alive after the receiver is dropped must change. github.com
And 1 more in this version.
tokio 1.37.0 breaking changes
- Behavior changed
unhandled_panic
Enabling the unstable unhandled_panic option on a build that does not support it now panics instead of being silently ignored. Code that enables it must check that the build supports it. github.com
tokio 1.36.0 breaking changes
- Behavior changed
copy
copy now takes part in Tokio's cooperative task budgeting, so it can return Pending more often. Code that depends on its completion timing may need to be checked. github.com - Behavior changed
repeat
repeat now takes part in Tokio's cooperative task budgeting, so it can return Pending more often. Code that depends on its polling behavior may need to be checked. github.com
And 1 more in this version.
tokio 1.33.0 breaking changes
- Removed
stats
The stats feature was removed as unused, so code or Cargo configuration that enables it will no longer build and must drop it. github.com
tokio 0.3.0 breaking changes
- Removed
Buf
bytes is no longer part of the public API, so the Buf implementation was removed. github.com - Removed
BufMut
bytes is no longer part of the public API, so the BufMut implementation was removed. github.com
And 28 more in this version.
tokio 0.2.0 breaking changes
- Removed
Standalone timer and net drivers are removed. Use Runtime instead. github.com - Removed
current_thread
The current_thread runtime is removed. Use tokio::runtime::Runtime with basic_scheduler instead. github.com
And 26 more in this version.
tokio 0.2.0-alpha.5 breaking changes
- Renamed
Lock
Lock is renamed to Mutex and works more like std::sync::Mutex. Code using Lock must switch to Mutex. github.com - Renamed
sleep
The sleep function is renamed to delay_for. Code calling sleep must switch to delay_for. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.