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