unstale

cargo / bytes

bytes

What changed in bytes 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

4 breaking1 security2 new APIs and options6 performance7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

bytes 120 changes

Breaking changes 4

  • The minimum supported Rust version is now 1.57.

    1.11.0release notes

  • An unused Buf implementation was removed.

    1.0.0release notes

  • A Buf method was renamed to chunk as part of committing to a public API with long-term support.

    1.0.0release notes

  • A BufMut method was renamed to chunk_mut as part of committing to a public API with long-term support.

    1.0.0release notes

Security 1

New APIs and options 2

Performance 6

  • Specializes extension for u8 when the BytesMut is Vec-backed.

    1.12.2release notes

  • Improves put_bytes performance.

    1.12.2release notes

  • Optimizes the cold reuse path and avoids reserving when the source is contiguous.

    1.12.2release notes

  • Improves write_all performance.

    1.12.2release notes

  • BytesMut::put is specialized for Bytes.

    1.11.0release notes

  • BytesMut::put now reserves capacity.

    1.11.0release notes

Fixes and other changes 7

  • Releases the shared reference when truncating a Bytes value to zero length.

    1.12.2release notes

  • Preserves buffer order when collecting vectored chunks.

    1.12.2release notes

  • Fixes sign extension when converting integers.

    1.12.2release notes

  • Properly handles cases when Box::new panics.

    1.12.1release notes

  • Fixes a panic in get_int when nbytes is zero.

    1.12.0release notes

  • BytesMut only reuses the source when it has remaining bytes.

    1.11.0release notes

  • BytesMut::remaining_mut uses isize::MAX instead of usize::MAX.

    1.11.0release notes