tokio-1.45.0

tokio-rs/tokiotokio-1.45.0May 6, 2025by Darksonn

AI Summary

Stabilized worker metrics and added `Command::spawn_with`. Improved unwind safety for the runtime handle and reverted internal time sharding.

Key Highlights

  • Stabilized worker metrics: `worker_total_busy_duration`, `worker_park_count`, and `worker_unpark_count`
  • Added `Command::spawn_with` method for process spawning
  • Marked `runtime::Handle` as unwind safe
  • Reverted internal sharding implementation in `time` module

New Features

  • worker_total_busy_duration
  • worker_park_count
  • worker_unpark_count
  • Command::spawn_with

Full Release Notes

### Added

- metrics: stabilize `worker_total_busy_duration`, `worker_park_count`, and `worker_unpark_count` ([#6899], [#7276])
- process: add `Command::spawn_with` ([#7249])

### Changed

- io: do not require `Unpin` for some trait impls ([#7204])
- rt: mark `runtime::Handle` as unwind safe ([#7230])
- time: revert internal sharding implementation ([#7226])

### Unstable

- rt: remove alt multi-threaded runtime ([#7275])

[#6899]: https://github.com/tokio-rs/tokio/pull/6899
[#7276]: https://github.com/tokio-rs/tokio/pull/7276
[#7249]: https://github.com/tokio-rs/tokio/pull/7249
[#7204]: https://github.com/tokio-rs/tokio/pull/7204
[#7230]: https://github.com/tokio-rs/tokio/pull/7230
[#7226]: https://github.com/tokio-rs/tokio/pull/7226
[#7275]: https://github.com/tokio-rs/tokio/pull/7275