32 releases

✓ Uses Rust 2018 edition

0.5.4 Jan 23, 2020
0.5.3 Dec 12, 2019
0.5.2 Nov 27, 2019
0.4.12 Mar 6, 2019
0.2.3 Mar 30, 2015

#4 in Data structures

Download history 124709/week @ 2019-11-10 126424/week @ 2019-11-17 125835/week @ 2019-11-24 145206/week @ 2019-12-01 154411/week @ 2019-12-08 153216/week @ 2019-12-15 87830/week @ 2019-12-22 113108/week @ 2019-12-29 174614/week @ 2020-01-05 181262/week @ 2020-01-12 193312/week @ 2020-01-19 205542/week @ 2020-01-26 194973/week @ 2020-02-02 187933/week @ 2020-02-09 174478/week @ 2020-02-16

588,243 downloads per month
Used in 4,458 crates (1,077 directly)

MIT license

165KB
2.5K SLoC

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 = "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.

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

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.

Dependencies