tokio-1.51.0

tokio-rs/tokiotokio-1.51.0Apr 3, 2026by Darksonn

AI Summary

This version stabilizes the `LocalRuntime`, adds wasm32-wasip2 networking support, and introduces utility functions for runtime introspection like `worker_index()` and runtime naming.

Key Highlights

  • Stabilized `LocalRuntime`
  • Added wasm32-wasip2 networking support
  • Added `worker_index()` function
  • Added runtime name feature

New Features

  • Networking support for Hurd via `get_peer_cred`
  • Stabilized `LocalRuntime`
  • wasm32-wasip2 networking support
  • `worker_index()` function
  • Runtime name feature

Full Release Notes

# 1.51.0 (April 3rd, 2026)

### Added

- net: implement `get_peer_cred` on Hurd ([#7989])
- runtime: add `tokio::runtime::worker_index()` ([#7921])
- runtime: add runtime name ([#7924])
- runtime: stabilize `LocalRuntime` ([#7557])
- wasm: add wasm32-wasip2 networking support ([#7933])

### Changed

- runtime: steal tasks from the LIFO slot ([#7431])

### Fixed

- docs: do not show "Available on non-loom only." doc label ([#7977])
- macros: improve overall macro hygiene ([#7997])
- sync: fix `notify_waiters` priority in `Notify` ([#7996])
- sync: fix panic in `Chan::recv_many` when called with non-empty vector on closed channel ([#7991])

[#7431]: https://github.com/tokio-rs/tokio/pull/7431
[#7557]: https://github.com/tokio-rs/tokio/pull/7557
[#7921]: https://github.com/tokio-rs/tokio/pull/7921
[#7924]: https://github.com/tokio-rs/tokio/pull/7924
[#7933]: https://github.com/tokio-rs/tokio/pull/7933
[#7977]: https://github.com/tokio-rs/tokio/pull/7977
[#7989]: https://github.com/tokio-rs/tokio/pull/7989
[#7991]: https://github.com/tokio-rs/tokio/pull/7991
[#7996]: https://github.com/tokio-rs/tokio/pull/7996
[#7997]: https://github.com/tokio-rs/tokio/pull/7997