Bug: 158619003

Clone this repo:
  1. cdfc275 Make bytes available to product and vendor am: 1345df4077 am: 21a5665303 by Matthew Maurer · 7 months ago build-tools-release emu-33-dev emu-34-release main master
  2. 21a5665 Make bytes available to product and vendor am: 1345df4077 by Matthew Maurer · 7 months ago android-u-beta-1-gpl
  3. 1345df4 Make bytes available to product and vendor by Matthew Maurer · 7 months ago
  4. f96b291 Upgrade bytes to 1.4.0 am: 07286a835f am: 14c5df49c8 by Jeff Vander Stoep · 8 months ago
  5. 14c5df4 Upgrade bytes to 1.4.0 am: 07286a835f by Jeff Vander Stoep · 8 months 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.