Releases: tokio-rs/bytes
Releases · tokio-rs/bytes
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)
Bytes v1.5.0
Bytes v1.4.0
Bytes v1.3.0
Bytes v1.2.1
Bytes v1.2.0
1.2.0 (July 19, 2022)
Added
- Add
BytesMut::zeroed
(#517) - Implement
Extend<Bytes>
forBytesMut
(#527) - Add conversion from
BytesMut
toVec<u8>
(#543, #554) - Add conversion from
Bytes
toVec<u8>
(#547) - Add
UninitSlice::as_uninit_slice_mut()
(#548) - Add const to
Bytes::{len,is_empty}
(#514)
Changed
Fixed
- Make miri happy (#515, #523, #542, #545, #553)
- Make tsan happy (#541)
- Fix
remaining_mut()
on chain (#488) - Fix amortized asymptotics of
BytesMut
(#555)
Documented
Bytes v1.1.0
bytes v1.0.1
bytes v1.0.0
v0.6.0
API polish in preparation for a 1.0 release.
Changed
BufMut
is now anunsafe
trait (#432).BufMut::bytes_mut()
returns&mut UninitSlice
, a type owned bybytes
to
avoid undefined behavior (#433).Buf::copy_to_bytes(len)
replacesBuf::into_bytes()
(#439).Buf
/BufMut
utility methods are moved onto the trait and*Ext
traits are
removed (#431).