Skip to content
Utilities for working with bytes
Branch: v0.4.x
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
benches Optimize Inner::shallow_clone (#217) Jul 3, 2018
ci Whitelist false positive std (#234) Nov 17, 2018
src Panic in BytesMut::split_to when out of bounds (#252) (#253) Apr 2, 2019
tests Panic in BytesMut::split_to when out of bounds (#252) (#253) Apr 2, 2019
.gitignore Initial commit Jan 30, 2015
.travis.yml implement `Buf` and `BufMut` for `Either` (#225) Sep 3, 2018 Fix a typo in (#251) Mar 29, 2019
Cargo.toml Bump version to v0.4.12 (#250) Mar 6, 2019


A utility library for working with bytes. Build Status



To use bytes, first add this to your Cargo.toml:

bytes = "0.4.12"

Next, add this to your crate:

extern crate bytes;

use bytes::{Bytes, BytesMut, Buf, BufMut};

Serde support

Serde support is optional and disabled by default. To enable use the feature serde.

bytes = { version = "0.4.12", features = ["serde"] }


This project is licensed under the MIT license.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in bytes by you, shall be licensed as MIT, without any additional terms or conditions.

You can’t perform that action at this time.