Skip to content

Commit 03fdde9

Browse files
authored
chore: prepare v1.7.0 (#724)
1 parent f8c7b57 commit 03fdde9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# 1.7.0 (July 31, 2024)
2+
3+
### Added
4+
5+
- Add conversion from `Bytes` to `BytesMut` (#695, #710)
6+
- Add reclaim method without additional allocation (#686)
7+
8+
### Documented
9+
10+
- Clarify how `BytesMut::zeroed` works (#714)
11+
- Clarify the behavior of `Buf::chunk` (#717)
12+
13+
### Changed
14+
15+
- Change length condition of `BytesMut::truncate`
16+
- Reuse capacity when possible in `<BytesMut as Buf>::advance` impl (#698)
17+
- Improve `must_use` suggestion of `BytesMut::split` (#699)
18+
19+
### Internal changes
20+
21+
- Use `ManuallyDrop` instead of `mem::forget` (#678)
22+
- Don't set `len` in `BytesMut::reserve` (#682)
23+
- Optimize `Bytes::copy_to_bytes` (#688)
24+
- Refactor `BytesMut::truncate` (#694)
25+
- Refactor `BytesMut::resize` (#696)
26+
- Reorder assertion in `Bytes::split_to`, `Bytes::split_off` (#689, #693)
27+
- Use `offset_from` in more places (#705)
28+
- Correct the wrong usage of `IntoIter` (#707)
29+
130
# 1.6.1 (July 13, 2024)
231

332
This release fixes a bug where `Bytes::is_unique` returns incorrect values when

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "bytes"
44
# When releasing to crates.io:
55
# - Update CHANGELOG.md.
66
# - Create "v1.x.y" git tag.
7-
version = "1.6.1"
7+
version = "1.7.0"
88
edition = "2018"
99
rust-version = "1.39"
1010
license = "MIT"

0 commit comments

Comments
 (0)