Bump bytes from 1.12.1 to 1.12.2
Merged
DE
5d ago+2+2+0123456789-2-2-0123456789
Bumps bytes from 1.12.1 to 1.12.2.
Release notes
Sourced from bytes's releases.
Bytes v1.12.2
1.12.2 (November 17th, 2026)
Fixed
- Fix sign extension in
try_get_intandtry_get_int_le(#839)- Release shared reference when truncating
Bytesto zero length (#842)- Preserve buffer order in
Chain::chunks_vectored(#872)Changed
- Inline
BytesMut::put_slice(#860)- Optimize
BytesMut::putcold reuse path (#866)- Only reserve in
BytesMut::putif the source isn't contiguous (#867)- Specialize
BytesMut::extend<u8>when it isVec-backed (#829)- Inline
BytesMut's specializedBufMutmethods and addput_u8fast paths (#850)- Improve performance of
Writer::write_allandBytesMut::put_bytes(#871)- Assert
nbytes <= 8insign_extend(#862)- Simplify shared alignment assertions (#841)
- Raise minimum
serdeversion to 1.0.70 (#863)Documented
- Correct the Panics section of
Bytes::slice_ref(#873)
Changelog
Sourced from bytes's changelog.
1.12.2 (November 17th, 2026)
Fixed
- Fix sign extension in
try_get_intandtry_get_int_le(#839)- Release shared reference when truncating
Bytesto zero length (#842)- Preserve buffer order in
Chain::chunks_vectored(#872)Changed
- Inline
BytesMut::put_slice(#860)- Optimize
BytesMut::putcold reuse path (#866)- Only reserve in
BytesMut::putif the source isn't contiguous (#867)- Specialize
BytesMut::extend<u8>when it isVec-backed (#829)- Inline
BytesMut's specializedBufMutmethods and addput_u8fast paths (#850)- Improve performance of
Writer::write_allandBytesMut::put_bytes(#871)- Assert
nbytes <= 8insign_extend(#862)- Simplify shared alignment assertions (#841)
- Raise minimum
serdeversion to 1.0.70 (#863)Documented
- Correct the Panics section of
Bytes::slice_ref(#873)
Commits
67edc2bRelease bytes v1.12.2 (#875)4ddf0fcImprove perfromance in some hotspots (updated) (#871)847ea1bPreserve buffer order in Chain::chunks_vectored (updated) (#872)ba7d140docs: correct the Panics section on Bytes::slice_ref (#873)f2cf483Assert nbytes <= 8 in sign_extend (#832) (#862)b356236InlineBytesMut's specializedBufMutmethods and addput_u8fast paths ...07f0998test: cover excluded start bound in Bytes::slice (#864)e0cdab7SpecializeBytesMut::extend\<u8>when its Vec-backed (#829)78a3253Only call reserve if the src isn't contiguous (#867)67791d9ci: update nightly to nightly-2026-11-08 (#869)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Updates bytes from 1.12.1 to 1.12.2 in Cargo.lock.
This patch release fixes a sign extension bug in try_get_int/try_get_int_le, releases the shared reference when truncating Bytes to zero length, and preserves buffer order in Chain::chunks_vectored. It also includes performance improvements to several BytesMut operations.