tokio-1.46.1
tokio-rs/tokiotokio-1.46.1Jul 4, 2025by hawkw
AI Summary
Tokio 1.46.1 fixes a bug where task spawn locations were incorrectly reported in `TaskMeta::spawned_at` for tasks spawned using `tokio::spawn`.
Key Highlights
- Fixed incorrect spawn locations in `TaskMeta::spawned_at` for `tokio::spawn`.
- Added unstable feature for `TaskMeta::spawn_location` tracking.
New Features
- Unstable spawn location tracking
Full Release Notes
# 1.46.1 (July 4th, 2025) This release fixes incorrect spawn locations in runtime task hooks for tasks spawned using `tokio::spawn` rather than `Runtime::spawn`. This issue only effected the spawn location in `TaskMeta::spawned_at`, and did not effect task locations in Tracing events. ## Unstable - runtime: add `TaskMeta::spawn_location` tracking where a task was spawned ([#7440]) [#7440]: https://github.com/tokio-rs/tokio/pull/7440