From f7fb0bdc7a4b8db7b44aa34bf869cc76e61ef246 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 7 Apr 2025 17:15:14 +0200 Subject: [PATCH 1/2] chore: prepare Tokio v1.42.1 --- 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 6ba7d7f44..64cda057a 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.42.0", features = ["full"] } +tokio = { version = "1.42.1", features = ["full"] } ``` Then, on your main.rs: diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 3c09ec607..0879fbc99 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,3 +1,17 @@ +# 1.42.1 (April 7nd, 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.42.0 (Dec 3rd, 2024) ### Added diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 73b2deac7..7ede25c3d 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.42.0" +version = "1.42.1" edition = "2021" rust-version = "1.70" authors = ["Tokio Contributors "] diff --git a/tokio/README.md b/tokio/README.md index 6ba7d7f44..64cda057a 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.42.0", features = ["full"] } +tokio = { version = "1.42.1", features = ["full"] } ``` Then, on your main.rs: From e59584a661490dc4fdfd71c34e1a05c004bcee5b Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 8 Apr 2025 09:50:36 +0200 Subject: [PATCH 2/2] changelog: fix release date of v1.42.1 (#7244) --- tokio/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 0879fbc99..9e7f2f807 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,4 +1,4 @@ -# 1.42.1 (April 7nd, 2025) +# 1.42.1 (April 8th, 2025) This release fixes a soundness issue in the broadcast channel. The channel accepts values that are `Send` but `!Sync`. Previously, the channel called