From 3ee1829cb929e24ec31c96ec33fa8accac08ea33 Mon Sep 17 00:00:00 2001 From: mox692 Date: Wed, 31 Jul 2024 02:04:26 +0900 Subject: [PATCH 1/2] chore: prepare v1.7.0 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac5d8d5ce..826628ec6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +# 1.7.0 (July 31, 2024) + +### Added +- Add conversion from `Bytes` to `BytesMut` (#695, #710) +- Add reclaim method without additional allocation (#686) + +### Documented +- Clarify how `BytesMut::zeroed` works (#714) +- Clarify the behavior of `Buf::chunk` (#717) + +### Changed +- Change length condition of `BytesMut::truncate` +- Reuse capacity when possible in `::advance` impl (#698) +- Improve `must_use` suggestion of `BytesMut::split` (#699) + +### Internal changes +- Use `ManuallyDrop` instead of `mem::forget` (#678) +- Don't set `len` in `BytesMut::reserve` (#682) +- Optimize `Bytes::copy_to_bytes` (#688) +- Refactor `BytesMut::truncate` (#694) +- Refactor `BytesMut::resize` (#696) +- Reorder assertion in `Bytes::split_to`, `Bytes::split_off` (#689, #693) +- Use `offset_from` in more places (#705) +- Correct the wrong usage of `IntoIter` (#707) + # 1.6.1 (July 13, 2024) This release fixes a bug where `Bytes::is_unique` returns incorrect values when diff --git a/Cargo.toml b/Cargo.toml index ef44fbb9d..ac8bdf7d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "bytes" # When releasing to crates.io: # - Update CHANGELOG.md. # - Create "v1.x.y" git tag. -version = "1.6.1" +version = "1.7.0" edition = "2018" rust-version = "1.39" license = "MIT" From a1a13237c85ee10349828bdceef626ba506cdfb8 Mon Sep 17 00:00:00 2001 From: mox692 Date: Wed, 31 Jul 2024 18:27:48 +0900 Subject: [PATCH 2/2] apply review: add empty line --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 826628ec6..7a4c5ba08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,23 @@ # 1.7.0 (July 31, 2024) ### Added + - Add conversion from `Bytes` to `BytesMut` (#695, #710) - Add reclaim method without additional allocation (#686) ### Documented + - Clarify how `BytesMut::zeroed` works (#714) - Clarify the behavior of `Buf::chunk` (#717) ### Changed + - Change length condition of `BytesMut::truncate` - Reuse capacity when possible in `::advance` impl (#698) - Improve `must_use` suggestion of `BytesMut::split` (#699) ### Internal changes + - Use `ManuallyDrop` instead of `mem::forget` (#678) - Don't set `len` in `BytesMut::reserve` (#682) - Optimize `Bytes::copy_to_bytes` (#688)