From aa303bc2051f7c21b48bb7bfcafe8fd4f39afd21 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 2 Apr 2025 17:29:30 -0700 Subject: [PATCH] chore: prepare Tokio v1.38.2 release --- README.md | 2 +- tokio/CHANGELOG.md | 14 ++++++++++++++ tokio/Cargo.toml | 2 +- tokio/README.md | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b04599b99..b82b6bf34 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Make sure you activated the full features of the tokio crate on Cargo.toml: ```toml [dependencies] -tokio = { version = "1.38.1", features = ["full"] } +tokio = { version = "1.38.2", features = ["full"] } ``` Then, on your main.rs: diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index cfe70fa4d..2e911098d 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,3 +1,17 @@ +# 1.38.2 (April 2nd, 2025) + +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 + # 1.38.1 (July 16th, 2024) This release fixes the bug identified as ([#6682]), which caused timers not diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index bfcb55ed5..6a9080425 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -6,7 +6,7 @@ name = "tokio" # - README.md # - Update CHANGELOG.md. # - Create "v1.x.y" git tag. -version = "1.38.1" +version = "1.38.2" edition = "2021" rust-version = "1.63" authors = ["Tokio Contributors "] diff --git a/tokio/README.md b/tokio/README.md index b04599b99..b82b6bf34 100644 --- a/tokio/README.md +++ b/tokio/README.md @@ -56,7 +56,7 @@ Make sure you activated the full features of the tokio crate on Cargo.toml: ```toml [dependencies] -tokio = { version = "1.38.1", features = ["full"] } +tokio = { version = "1.38.2", features = ["full"] } ``` Then, on your main.rs: