tokio-1.42.1
tokio-rs/tokiotokio-1.42.1Apr 8, 2025by Darksonn
AI Summary
Fixes a critical soundness issue in the broadcast channel by synchronizing `clone()` calls for types that are `Send` but not `Sync`.
Key Highlights
- Fixed soundness issue in broadcast channel
- Synchronized calls to `.clone()` to prevent data races
Full Release Notes
This release fixes a soundness issue in the broadcast channel. The channel accepts values that are `Send` but `!Sync`. Previously, the channel called `clone()` on these values without synchronizing. This release fixes the channel by synchronizing calls to `.clone()` (Thanks Austin Bonander for finding and reporting the issue). ### Fixed - sync: synchronize `clone()` call in broadcast channel ([#7232]) [#7232]: https://github.com/tokio-rs/tokio/pull/7232