From 6292d4a80817e0d65bf127c6e1b3e8ef4d5c03b0 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 27 Mar 2023 22:59:25 +0200 Subject: [PATCH 1/2] chore: prepare Tokio v1.27.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 7fec89a14e2..8aceedc274d 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.26.0", features = ["full"] } +tokio = { version = "1.27.0", features = ["full"] } ``` Then, on your main.rs: diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 35794be8f3b..98099330beb 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -1,3 +1,50 @@ +# 1.27.0 (March 27th, 2023) + +This release bumps the MSRV of Tokio to 1.56. ([#5559]) + +### Added + +- io: add `async_io` helper method to sockets ([#5512]) +- io: add implementations of `AsFd`/`AsHandle`/`AsSocket` ([#5514], [#5540]) +- net: add `UdpSocket::peek_sender()` ([#5520]) +- sync: add `RwLockWriteGuard::{downgrade_map, try_downgrade_map}` ([#5527]) +- task: add `JoinHandle::abort_handle` ([#5543]) + +### Changed + +- io: use `memchr` from `libc` ([#5558]) +- macros: accept path as crate rename in `#[tokio::main]` ([#5557]) +- time: don't register for a wakeup when `Interval` returns `Ready` ([#5553]) + +### Fixed + +- fs: fuse std iterator in `ReadDir` ([#5555]) +- tracing: fix `spawn_blocking` location fields ([#5573]) +- time: clean up redundant check in `Wheel::poll()` ([#5574]) + +### Documented + +- macros: define cancellation safety ([#5525]) +- io: add details to docs of `tokio::io::copy[_buf]` ([#5575]) +- io: refer to `ReaderStream` and `StreamReader` in module docs ([#5576]) + +[#5512]: https://github.com/tokio-rs/tokio/pull/5512 +[#5514]: https://github.com/tokio-rs/tokio/pull/5514 +[#5520]: https://github.com/tokio-rs/tokio/pull/5520 +[#5525]: https://github.com/tokio-rs/tokio/pull/5525 +[#5527]: https://github.com/tokio-rs/tokio/pull/5527 +[#5540]: https://github.com/tokio-rs/tokio/pull/5540 +[#5543]: https://github.com/tokio-rs/tokio/pull/5543 +[#5553]: https://github.com/tokio-rs/tokio/pull/5553 +[#5555]: https://github.com/tokio-rs/tokio/pull/5555 +[#5557]: https://github.com/tokio-rs/tokio/pull/5557 +[#5558]: https://github.com/tokio-rs/tokio/pull/5558 +[#5559]: https://github.com/tokio-rs/tokio/pull/5559 +[#5573]: https://github.com/tokio-rs/tokio/pull/5573 +[#5574]: https://github.com/tokio-rs/tokio/pull/5574 +[#5575]: https://github.com/tokio-rs/tokio/pull/5575 +[#5576]: https://github.com/tokio-rs/tokio/pull/5576 + # 1.26.0 (March 1st, 2023) ### Fixed diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 632ae0518de..d777a547843 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.26.0" +version = "1.27.0" edition = "2021" rust-version = "1.56" authors = ["Tokio Contributors "] diff --git a/tokio/README.md b/tokio/README.md index 7fec89a14e2..8aceedc274d 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.26.0", features = ["full"] } +tokio = { version = "1.27.0", features = ["full"] } ``` Then, on your main.rs: From 9e3c96726aa4c7c2bde8a37928b4bf703c1169e4 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 27 Mar 2023 23:03:36 +0200 Subject: [PATCH 2/2] mention syn upgrade even though its a tokio-macros change --- tokio/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio/CHANGELOG.md b/tokio/CHANGELOG.md index 98099330beb..a4031282471 100644 --- a/tokio/CHANGELOG.md +++ b/tokio/CHANGELOG.md @@ -14,6 +14,7 @@ This release bumps the MSRV of Tokio to 1.56. ([#5559]) - io: use `memchr` from `libc` ([#5558]) - macros: accept path as crate rename in `#[tokio::main]` ([#5557]) +- macros: update to syn 2.0.0 ([#5572]) - time: don't register for a wakeup when `Interval` returns `Ready` ([#5553]) ### Fixed @@ -40,6 +41,7 @@ This release bumps the MSRV of Tokio to 1.56. ([#5559]) [#5557]: https://github.com/tokio-rs/tokio/pull/5557 [#5558]: https://github.com/tokio-rs/tokio/pull/5558 [#5559]: https://github.com/tokio-rs/tokio/pull/5559 +[#5572]: https://github.com/tokio-rs/tokio/pull/5572 [#5573]: https://github.com/tokio-rs/tokio/pull/5573 [#5574]: https://github.com/tokio-rs/tokio/pull/5574 [#5575]: https://github.com/tokio-rs/tokio/pull/5575