tokio-1.44.2

tokio-rs/tokiotokio-1.44.2Apr 5, 2025by carllerche

AI Summary

Re-release of the broadcast channel soundness fix to address the issue where non-Sync types were being cloned unsafely.

Key Highlights

  • Fixed soundness issue in broadcast channel

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