From 5fd5fd95eeb2d019f9236c19b25e3f255be0df22 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 25 Apr 2023 11:42:58 +0200 Subject: [PATCH 1/3] chore: prepare Tokio v1.28.0 --- README.md | 2 +- tokio/CHANGELOG.md | 47 ++++++++++++++++++++++++++++++++++++++++++++++ tokio/Cargo.toml | 2 +- tokio/README.md | 2 +- 4 files changed, 50 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8aceedc274d..145ae4c80e1 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.27.0", features = ["full"] } +tokio = { version = "1.28.0", features = ["full"] } ``` Then, on your main.rs: diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index a4031282471..af95850487e 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,3 +1,50 @@ +# 1.28.0 (April 25th, 2023) + +### Added + +- io: add `AsyncFd::async_io` ([#5542]) +- io: impl BufMut for ReadBuf ([#5590]) +- net: add `recv_buf` for `UdpSocket` and `UnixDatagram` ([#5583]) +- sync: add `OwnedSemaphorePermit::semaphore` ([#5618]) +- sync: add `same_channel` to broadcast channel ([#5607]) +- sync: add `watch::Receiver::wait_for` ([#5611]) +- task: add `JoinSet::spawn_blocking` ([#5612]) + +### Changed + +- deps: update windows-sys to 0.48 ([#5591]) +- io: make `read_to_end` not grow unnecessarily ([#5610]) +- macros: make entrypoints more efficient ([#5621]) +- sync: improve Debug impl for `RwLock` ([#5647]) +- sync: reduce contention in `Notify` ([#5503]) + +### Fixed + +- net: support `get_peer_cred` on AIX ([#5065]) +- sync: avoid deadlocks in `broadcast` with custom wakers ([#5578]) + +### Documented + +- sync: fix typo in `Semaphore::MAX_PERMITS` ([#5645]) +- sync: fix typo in `tokio::sync::watch::Sender` docs ([#5587]) + +[#5065]: https://github.com/tokio-rs/tokio/pull/5065 +[#5503]: https://github.com/tokio-rs/tokio/pull/5503 +[#5542]: https://github.com/tokio-rs/tokio/pull/5542 +[#5578]: https://github.com/tokio-rs/tokio/pull/5578 +[#5583]: https://github.com/tokio-rs/tokio/pull/5583 +[#5587]: https://github.com/tokio-rs/tokio/pull/5587 +[#5590]: https://github.com/tokio-rs/tokio/pull/5590 +[#5591]: https://github.com/tokio-rs/tokio/pull/5591 +[#5607]: https://github.com/tokio-rs/tokio/pull/5607 +[#5610]: https://github.com/tokio-rs/tokio/pull/5610 +[#5611]: https://github.com/tokio-rs/tokio/pull/5611 +[#5612]: https://github.com/tokio-rs/tokio/pull/5612 +[#5618]: https://github.com/tokio-rs/tokio/pull/5618 +[#5621]: https://github.com/tokio-rs/tokio/pull/5621 +[#5645]: https://github.com/tokio-rs/tokio/pull/5645 +[#5647]: https://github.com/tokio-rs/tokio/pull/5647 + # 1.27.0 (March 27th, 2023) This release bumps the MSRV of Tokio to 1.56. ([#5559]) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 9b512694e4d..4b73a5ede52 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.27.0" +version = "1.28.0" edition = "2021" rust-version = "1.56" authors = ["Tokio Contributors "] diff --git a/tokio/README.md b/tokio/README.md index 8aceedc274d..145ae4c80e1 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.27.0", features = ["full"] } +tokio = { version = "1.28.0", features = ["full"] } ``` Then, on your main.rs: From 85d146e1a5eefb50d0b2b4b2040df7b386de4be7 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 25 Apr 2023 12:46:50 +0200 Subject: [PATCH 2/3] Mention `spawn_blocking_on` --- tokio/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index af95850487e..3778531667b 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -8,7 +8,7 @@ - sync: add `OwnedSemaphorePermit::semaphore` ([#5618]) - sync: add `same_channel` to broadcast channel ([#5607]) - sync: add `watch::Receiver::wait_for` ([#5611]) -- task: add `JoinSet::spawn_blocking` ([#5612]) +- task: add `JoinSet::spawn_blocking` and `spawn_blocking_on` ([#5612]) ### Changed From 3bc6cfa8bd64d26bbe477b0c2565e85a56dc5671 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 25 Apr 2023 17:06:48 +0200 Subject: [PATCH 3/3] Qualify `spawn_blocking_on` Co-authored-by: Taiki Endo --- tokio/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 3778531667b..e51ad14d1b1 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -8,7 +8,7 @@ - sync: add `OwnedSemaphorePermit::semaphore` ([#5618]) - sync: add `same_channel` to broadcast channel ([#5607]) - sync: add `watch::Receiver::wait_for` ([#5611]) -- task: add `JoinSet::spawn_blocking` and `spawn_blocking_on` ([#5612]) +- task: add `JoinSet::spawn_blocking` and `JoinSet::spawn_blocking_on` ([#5612]) ### Changed