# What changed in bytes

> 20 changes in bytes 1 from its official release notes, upgrade guides and advisories: 4 breaking, 1 security, 2 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/cargo/bytes/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## bytes 1

### Breaking changes

- The minimum supported Rust version is now 1.57. (1.11.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.0)
- An unused Buf implementation was removed. (1.0.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.0.0)
- A Buf method was renamed to chunk as part of committing to a public API with long-term support. (1.0.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.0.0)
- A BufMut method was renamed to chunk_mut as part of committing to a public API with long-term support. (1.0.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.0.0)

### Security

- bytes has integer overflow in BytesMut::reserve (1.11.1) — [security advisory](https://github.com/advisories/GHSA-434X-W66G-QW3R), [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.1)

### New APIs and options

- Adds BytesMut::extend_from_within(). (1.12.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.0)
- Adds BytesMut::try_unsplit(). (1.12.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.0)

### Performance

- Specializes extension for u8 when the BytesMut is Vec-backed. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Improves put_bytes performance. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Optimizes the cold reuse path and avoids reserving when the source is contiguous. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Improves write_all performance. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- BytesMut::put is specialized for Bytes. (1.11.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.0)
- BytesMut::put now reserves capacity. (1.11.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.0)

### Fixes and other changes

- Releases the shared reference when truncating a Bytes value to zero length. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Preserves buffer order when collecting vectored chunks. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Fixes sign extension when converting integers. (1.12.2) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.2)
- Properly handles cases when Box::new panics. (1.12.1) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.1)
- Fixes a panic in get_int when nbytes is zero. (1.12.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.12.0)
- BytesMut only reuses the source when it has remaining bytes. (1.11.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.0)
- BytesMut::remaining_mut uses isize::MAX instead of usize::MAX. (1.11.0) — [release notes](https://github.com/tokio-rs/bytes/releases/tag/v1.11.0)
