Sourced from bytes's releases.
Bytes 1.7.1
1.7.1 (August 1, 2024)
This release reverts the following change due to a regression:
- Reuse capacity when possible in
<BytesMut as Buf>::advanceimpl (#698)The revert can be found at #726.
Bytes 1.7.0
1.7.0 (July 31, 2024)
Added
- Add conversion from
BytestoBytesMut(#695, #710)- Add reclaim method without additional allocation (#686)
Documented
Changed
- Change length condition of
BytesMut::truncate- Reuse capacity when possible in
<BytesMut as Buf>::advanceimpl (#698)- Improve
must_usesuggestion ofBytesMut::split(#699)Internal changes
- Use
ManuallyDropinstead ofmem::forget(#678)- Don't set
leninBytesMut::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_fromin more places (#705)- Correct the wrong usage of
IntoIter(#707)Bytes 1.6.1
This release fixes a bug where
Bytes::is_uniquereturns incorrect values when theBytesoriginates from a sharedBytesMut. (#718)
Sourced from bytes's changelog.
1.7.1 (August 1, 2024)
This release reverts the following change due to a regression:
- Reuse capacity when possible in
<BytesMut as Buf>::advanceimpl (#698)The revert can be found at #726.
1.7.0 (July 31, 2024)
Added
- Add conversion from
BytestoBytesMut(#695, #710)- Add reclaim method without additional allocation (#686)
Documented
Changed
- Change length condition of
BytesMut::truncate- Reuse capacity when possible in
<BytesMut as Buf>::advanceimpl (#698)- Improve
must_usesuggestion ofBytesMut::split(#699)Internal changes
- Use
ManuallyDropinstead ofmem::forget(#678)- Don't set
leninBytesMut::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_fromin more places (#705)- Correct the wrong usage of
IntoIter(#707)1.6.1 (July 13, 2024)
This release fixes a bug where
Bytes::is_uniquereturns incorrect values when theBytesoriginates from a sharedBytesMut. (#718)
dc4fb3e
chore: prepare bytes v1.7.1 (#727)f488be4
Revert "Reuse capacity when possible in <BytesMut as
Buf>::advance impl" (#726)03fdde9
chore: prepare v1.7.0 (#724)f8c7b57
Merge 'v1.6.1' into 'master' (#721)fd13c7d
chore: prepare bytes v1.6.1 (#720)6b4b0ed
Fix Bytes::is_unique when created from shared
BytesMut (#718)9965a04
Remove unnecessary file (#719)3443ca5
docs: clarify the behavior of Buf::chunk (#717)8cc9407
Allow reclaiming the current allocation (#686)7a5154b
Clarify how BytesMut::zeroed works and advantages to manual
impl (#714)