Releases · tokio-rs/bytes
Bytes v1.11.1
1.11.1 (February 3rd, 2026)
- Fix integer overflow in
BytesMut::reserve
Bytes v1.11.0
Bytes v1.10.1
Bytes v1.10.0
Bytes v1.9.0
Bytes 1.8.0
1.8.0 (October 21, 2024)
- Guarantee address in
split_off/split_tofor 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
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_unique returns incorrect values when the Bytes originates from a shared BytesMut. (#718)