Bug: 158619003

Clone this repo:
  1. 3ab2498 Support building all variants. by Matthew Maurer · 6 days ago master sdk-release
  2. 01ae379 Import bytes-0.5.4 by Chih-Hung Hsieh · 5 weeks ago
  3. 7457df1 Initial empty repository by Inna Palant · 5 weeks ago simpleperf-release


A utility library for working with bytes.

Crates.io Build Status



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

bytes = "0.5"

Next, add this to your crate:

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.5", 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.