From c2a025e52b17e2131431ab226c5362a4b28b2259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tymoteusz=20Wi=C5=9Bniewski?= Date: Sun, 8 Oct 2023 16:35:32 +0200 Subject: [PATCH 1/4] chore: prepare Tokio v1.33.0 release --- README.md | 2 +- tokio/CHANGELOG.md | 83 ++++++++++++++++++++++++++++++++++++++++++++++ tokio/Cargo.toml | 2 +- tokio/README.md | 2 +- 4 files changed, 86 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1fdbdc7fc2f..956e9c51272 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.32.0", features = ["full"] } +tokio = { version = "1.33.0", features = ["full"] } ``` Then, on your main.rs: diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 0c821596462..538bcfbc98c 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,3 +1,86 @@ +# 1.33.0 (October 8, 2023) + +### Changed + +- fix cache line size for RISC-V ([#5994]) +- fs: add vectored writes to `tokio::fs::File` ([#5958]) +- io: mark `Interest::add` with `#[must_use]` ([#6037]) +- io: use memchr from libc ([#5960]) +- io: support vectored writes for `DuplexStream` ([#5985]) +- io: add `SyncIOBridge::into_inner` ([#5971]) +- macros: use `::core` imports instead of `::std` in `tokio::test` ([#5973]) +- sync: use Acquire/Release orderings instead of SeqCst in `watch` ([#6018]) +- sync: prevent lock poisoning in `watch::Receiver::wait_for` ([#6021]) +- task: fix `spawn_local` source location ([#5984]) + +### Added + +- io: add `Interest::remove` method ([#5906]) +- io: implement `Seek` for `SyncIoBridge` ([#6058]) +- net: add Apple tvOS support ([#6045]) +- sync: add `?Sized` bound to `{MutexGuard,OwnedMutexGuard}::map` ([#5997]) +- sync: add const fn `OnceCell::from_value` ([#5903]) +- sync: add `watch::Sender::new` ([#5998]) +- sync: add `watch::Receiver::mark_unseen` ([#5962], [#6014], [#6017]) + +### Removed + +- remove unused `stats` feature ([#5952]) + +### Documented + +- add missing backticks in code examples ([#5938], [#6056]) +- fix typos ([#5988], [#6030]) +- process: document that `Child::wait` is cancel safe ([#5977]) +- sync: add examples for `Semaphore` ([#5939], [#5956], [#5978], [#6031], [#6032], [#6050]) +- sync: document that `broadcast` capacity is a lower bound ([#6042]) +- sync: document that `const_new` is not instrumented ([#6002]) +- sync: improve cancel-safety documentation for `mpsc::Sender::send` ([#5947]) +- sync: improve docs for `watch` channel ([#5954]) +- taskdump: render taskdump documentation on docs.rs ([#5972]) + +### Unstable + +- taskdump: fix potential deadlock ([#6036]) + +[#5903]: https://github.com/tokio-rs/tokio/pull/5903 +[#5906]: https://github.com/tokio-rs/tokio/pull/5906 +[#5938]: https://github.com/tokio-rs/tokio/pull/5938 +[#5939]: https://github.com/tokio-rs/tokio/pull/5939 +[#5947]: https://github.com/tokio-rs/tokio/pull/5947 +[#5952]: https://github.com/tokio-rs/tokio/pull/5952 +[#5954]: https://github.com/tokio-rs/tokio/pull/5954 +[#5956]: https://github.com/tokio-rs/tokio/pull/5956 +[#5958]: https://github.com/tokio-rs/tokio/pull/5958 +[#5960]: https://github.com/tokio-rs/tokio/pull/5960 +[#5962]: https://github.com/tokio-rs/tokio/pull/5962 +[#5971]: https://github.com/tokio-rs/tokio/pull/5971 +[#5972]: https://github.com/tokio-rs/tokio/pull/5972 +[#5973]: https://github.com/tokio-rs/tokio/pull/5973 +[#5977]: https://github.com/tokio-rs/tokio/pull/5977 +[#5978]: https://github.com/tokio-rs/tokio/pull/5978 +[#5984]: https://github.com/tokio-rs/tokio/pull/5984 +[#5985]: https://github.com/tokio-rs/tokio/pull/5985 +[#5988]: https://github.com/tokio-rs/tokio/pull/5988 +[#5994]: https://github.com/tokio-rs/tokio/pull/5994 +[#5997]: https://github.com/tokio-rs/tokio/pull/5997 +[#5998]: https://github.com/tokio-rs/tokio/pull/5998 +[#6002]: https://github.com/tokio-rs/tokio/pull/6002 +[#6014]: https://github.com/tokio-rs/tokio/pull/6014 +[#6017]: https://github.com/tokio-rs/tokio/pull/6017 +[#6018]: https://github.com/tokio-rs/tokio/pull/6018 +[#6021]: https://github.com/tokio-rs/tokio/pull/6021 +[#6030]: https://github.com/tokio-rs/tokio/pull/6030 +[#6031]: https://github.com/tokio-rs/tokio/pull/6031 +[#6032]: https://github.com/tokio-rs/tokio/pull/6032 +[#6036]: https://github.com/tokio-rs/tokio/pull/6036 +[#6037]: https://github.com/tokio-rs/tokio/pull/6037 +[#6042]: https://github.com/tokio-rs/tokio/pull/6042 +[#6045]: https://github.com/tokio-rs/tokio/pull/6045 +[#6050]: https://github.com/tokio-rs/tokio/pull/6050 +[#6056]: https://github.com/tokio-rs/tokio/pull/6056 +[#6058]: https://github.com/tokio-rs/tokio/pull/6058 + # 1.32.0 (August 16, 2023) ### Fixed diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index afdd74ea8d5..a3adeceb967 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.32.0" +version = "1.33.0" edition = "2021" rust-version = "1.63" authors = ["Tokio Contributors "] diff --git a/tokio/README.md b/tokio/README.md index 1fdbdc7fc2f..956e9c51272 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.32.0", features = ["full"] } +tokio = { version = "1.33.0", features = ["full"] } ``` Then, on your main.rs: From 7572588835deb2a35406dee459a91740c5309dce Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Sun, 8 Oct 2023 22:52:33 +0200 Subject: [PATCH 2/4] Update tokio/CHANGELOG.md --- tokio/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 538bcfbc98c..3a7e5dc5f55 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -5,7 +5,6 @@ - fix cache line size for RISC-V ([#5994]) - fs: add vectored writes to `tokio::fs::File` ([#5958]) - io: mark `Interest::add` with `#[must_use]` ([#6037]) -- io: use memchr from libc ([#5960]) - io: support vectored writes for `DuplexStream` ([#5985]) - io: add `SyncIOBridge::into_inner` ([#5971]) - macros: use `::core` imports instead of `::std` in `tokio::test` ([#5973]) From b5ca54c4e5a76df9f1559c72f33c141b6d9aeafe Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 9 Oct 2023 10:49:39 +0200 Subject: [PATCH 3/4] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tymoteusz Wiśniewski --- tokio/CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 3a7e5dc5f55..95006cfe4ba 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -6,7 +6,6 @@ - fs: add vectored writes to `tokio::fs::File` ([#5958]) - io: mark `Interest::add` with `#[must_use]` ([#6037]) - io: support vectored writes for `DuplexStream` ([#5985]) -- io: add `SyncIOBridge::into_inner` ([#5971]) - macros: use `::core` imports instead of `::std` in `tokio::test` ([#5973]) - sync: use Acquire/Release orderings instead of SeqCst in `watch` ([#6018]) - sync: prevent lock poisoning in `watch::Receiver::wait_for` ([#6021]) @@ -15,7 +14,6 @@ ### Added - io: add `Interest::remove` method ([#5906]) -- io: implement `Seek` for `SyncIoBridge` ([#6058]) - net: add Apple tvOS support ([#6045]) - sync: add `?Sized` bound to `{MutexGuard,OwnedMutexGuard}::map` ([#5997]) - sync: add const fn `OnceCell::from_value` ([#5903]) From 189a32b63eac8313f3a20b0dafca2c909443e399 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 9 Oct 2023 11:31:48 +0200 Subject: [PATCH 4/4] Update CHANGELOG.md --- tokio/CHANGELOG.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 95006cfe4ba..29f6ef5f170 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,24 +1,27 @@ -# 1.33.0 (October 8, 2023) +# 1.33.0 (October 9, 2023) -### Changed +### Fixed -- fix cache line size for RISC-V ([#5994]) -- fs: add vectored writes to `tokio::fs::File` ([#5958]) - io: mark `Interest::add` with `#[must_use]` ([#6037]) -- io: support vectored writes for `DuplexStream` ([#5985]) -- macros: use `::core` imports instead of `::std` in `tokio::test` ([#5973]) -- sync: use Acquire/Release orderings instead of SeqCst in `watch` ([#6018]) +- runtime: fix cache line size for RISC-V ([#5994]) - sync: prevent lock poisoning in `watch::Receiver::wait_for` ([#6021]) - task: fix `spawn_local` source location ([#5984]) +### Changed + +- macros: use `::core` imports instead of `::std` in `tokio::test` ([#5973]) +- sync: use Acquire/Release orderings instead of SeqCst in `watch` ([#6018]) + ### Added +- fs: add vectored writes to `tokio::fs::File` ([#5958]) - io: add `Interest::remove` method ([#5906]) +- io: add vectored writes to `DuplexStream` ([#5985]) - net: add Apple tvOS support ([#6045]) - sync: add `?Sized` bound to `{MutexGuard,OwnedMutexGuard}::map` ([#5997]) -- sync: add const fn `OnceCell::from_value` ([#5903]) -- sync: add `watch::Sender::new` ([#5998]) - sync: add `watch::Receiver::mark_unseen` ([#5962], [#6014], [#6017]) +- sync: add `watch::Sender::new` ([#5998]) +- sync: add const fn `OnceCell::from_value` ([#5903]) ### Removed