Bug: 158619003

Clone this repo:
  1. cd0dd69 Upgrade bytes to 1.5.0 am: 59606a0308 by Jeff Vander Stoep · 2 months ago emu-34-2-dev main master
  2. 59606a0 Upgrade bytes to 1.5.0 by Jeff Vander Stoep · 2 months ago emu-34-3-release
  3. 7149c1a Migrate to cargo_embargo. am: aee1eb4a33 am: 73a64d8c6e am: fd1f150974 by Andrew Walbran · 5 months ago
  4. 8e881b3 Migrate to cargo_embargo. am: aee1eb4a33 am: b903f9786b am: 52655199f2 by Andrew Walbran · 5 months ago
  5. fd1f150 Migrate to cargo_embargo. am: aee1eb4a33 am: 73a64d8c6e by Andrew Walbran · 5 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.