tokio-1.53.3

tokio-rs/tokiotokio-1.53.3Oct 13, 2026by Darksonn

Upgrading?

AI Summary

This maintenance release introduces new registration methods for `AsyncFd` while deprecating the previous constructors. It also includes several bug fixes related to waker management, runtime time handling, and macro compilation warnings.

Key Highlights

  • Added `AsyncFd::register` and `AsyncFd::register_with_interest` methods for better file descriptor registration control.
  • Deprecated `AsyncFd::{new, with_interest, try_new, try_with_interest}` constructors.
  • Fixed wakers for `DuplexStream` and semaphores to be dropped/woken outside of locks to prevent deadlocks.
  • Fixed runtime time auto-advancement on `current_thread` when I/O wakes tasks.
  • Fixed `join!` and `try_join!` macros to eliminate `unreachable_code` warnings.

New Features

  • AsyncFd::register
  • AsyncFd::register_with_interest

Full Release Notes

# 1.53.3 (October 13th, 2026)

### Added

- io: add `AsyncFd::register` and `AsyncFd::register_with_interest` ([#8587])

### Changed

- io: deprecate `AsyncFd::{new, with_interest, try_new, try_with_interest}` ([#8587])

### Fixed

- io: wake and drop `DuplexStream` wakers outside the lock ([#8618])
- macros: avoid `unreachable_code` in `join!` and `try_join!` for `Infallible` ([#8518])
- runtime: fix paused time auto-advancing when I/O wakes a task on `current_thread` ([#8595])
- sync: wake waiters outside the lock when closing a semaphore ([#8529])
- test: fix several flaky tests ([#8196], [#8427], [#8609])

### Fixed (unstable)

- rt: keep `io_uring` op alive when submission fails after push ([#8185])

[#8185]: https://github.com/tokio-rs/tokio/pull/8185
[#8196]: https://github.com/tokio-rs/tokio/pull/8196
[#8427]: https://github.com/tokio-rs/tokio/pull/8427
[#8518]: https://github.com/tokio-rs/tokio/pull/8518
[#8529]: https://github.com/tokio-rs/tokio/pull/8529
[#8587]: https://github.com/tokio-rs/tokio/pull/8587
[#8595]: https://github.com/tokio-rs/tokio/pull/8595
[#8609]: https://github.com/tokio-rs/tokio/pull/8609
[#8618]: https://github.com/tokio-rs/tokio/pull/8618

Related Repositories