chore: prepare v1.7.0 #724
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.7.0 (July 31, 2024)
Added
BytestoBytesMut(Add zero-copy make_mut #695, Change Bytes::make_mut to impl From<Bytes> for BytesMut #710)Documented
BytesMut::zeroedworks (Clarify howBytesMut::zeroedworks and advantages to manual impl #714)Buf::chunk(docs: clarify the behavior ofBuf::chunk#717)Changed
BytesMut::truncate<BytesMut as Buf>::advanceimpl (Reuse capacity when possible in<BytesMut as Buf>::advanceimpl #698)must_usesuggestion ofBytesMut::split(Improve BytesMut::split suggestion #699)Internal changes
ManuallyDropinstead ofmem::forget(Bytes: Use ManuallyDrop instead of mem::forget #678)leninBytesMut::reserve(Don't setleninBytesMut::reserve#682)Bytes::copy_to_bytes(perf: improve Bytes::copy_to_bytes #688)BytesMut::truncate(Truncate tweaks #694)BytesMut::resize(Resize refactor #696)Bytes::split_to,Bytes::split_off(Bytes::split_to - check fast path first #689, Bytes::split_off - check fast path first #693)offset_fromin more places (Offset from #705)IntoIter(Fix iter tests to use the actual bytesIntoIterinstead of std #707)