Bug: 158619003

Clone this repo:
  1. 81ce1c8 Update Android.bp by running cargo_embargo am: 182067541f by James Farrell · 4 weeks ago main master
  2. 1820675 Update Android.bp by running cargo_embargo by James Farrell · 4 weeks ago
  3. 8fe4ed1 Update Android.bp by running cargo_embargo am: 397ca1c45f by James Farrell · 5 weeks ago
  4. 397ca1c Update Android.bp by running cargo_embargo by James Farrell · 6 weeks ago
  5. 5a777c7 Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future by Xin Li · 7 weeks ago

Bytes

A utility library for working with bytes.

Crates.io Build Status

Documentation

Usage

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

[dependencies]
bytes = "1"

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.

[dependencies]
bytes = { version = "1", features = ["serde"] }

Building documentation

When building the bytes documentation the docsrs option should be used, otherwise feature gates will not be shown. This requires a nightly toolchain:

RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc

License

This project is licensed under the MIT license.

Contribution

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.