Releases: tokio-rs/bytes
Releases · tokio-rs/bytes
Bytes 1.8.0
1.8.0 (October 21, 2024)
- Guarantee address in
split_off
/split_to
for empty slices (#740)
Bytes 1.7.2
Bytes 1.7.1
Bytes 1.7.0
1.7.0 (July 31, 2024)
Added
- Add conversion from
Bytes
toBytesMut
(#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>::advance
impl (#698) - Improve
must_use
suggestion ofBytesMut::split
(#699)
Internal changes
- Use
ManuallyDrop
instead ofmem::forget
(#678) - Don't set
len
inBytesMut::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)
Bytes 1.6.1
This release fixes a bug where Bytes::is_unique
returns incorrect values when the Bytes
originates from a shared BytesMut
. (#718)
Bytes 1.6.0 (March 22, 2024)
Added
- Add
Bytes::is_unique
(#643)
Documented
- Fix changelog typo (#628)
- Fix some spelling mistakes (#633)
- Typo fix (#637)
- Fix broken links (#639)
- Add security policy (#649)
Internal changes
- Move comment to correct constant (#629)
- Various cleanup (#635)
- Simplify
UninitSlice::as_uninit_slice_mut()
logic (#644) - Use
self.
instead ofSelf::
(#642) BytesMut
: Assert alignment ofShared
(#652)- Remove unnecessary namespace qualifier (#660)
- Remove an unnecessary else branch (#662)
- Remove unreachable else branch (#661)
- make parameter mut in
From<Vec>
(#667) - Restore commented tests (#665)
- Use
sub
instead ofoffset
(#668) - Calculate original capacity only if necessary (#666)
set_vec_pos
does not need a second parameter (#672)get_vec_pos
: use&self
instead of&mut self
(#670)- Refactor
split_at
/split_to
(#663) - Use
Iterator
from the prelude (#673) copy_to_bytes
: Add panic section to docs (#676)- Remove redundant reserve call (#674)
- Use
ManuallyDrop
instead ofmem::forget
(#675)