Releases: tokio-rs/bytes
Releases · tokio-rs/bytes
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).
Removed
v0.5.6
- Improve
BytesMut
to reuse buffer when fullyadvance
d. - Mark
BytesMut::{as_mut, set_len}
with#[inline]
. - Relax synchronization when cloning in shared vtable of
Bytes
. - Move
loom
todev-dependencies
.
v0.5.5
v0.5.4
Added
- Make
Bytes::new
aconst fn
. - Add
From<BytesMut>
forBytes
.
Fix
- Fix reversed arguments in
PartialOrd
forBytes
. - Fix
Bytes::truncate
losing original capacity when repr is an unsharedVec
. - Fix
Bytes::from(Vec)
when allocator gaveVec
a pointer with LSB set. - Fix panic in
Bytes::slice_ref
if argument is an empty slice.