37 releases (2 stable)

1.0.1 Jan 11, 2021
1.0.0 Dec 22, 2020
0.6.0 Oct 20, 2020
0.5.6 Jul 14, 2020
0.2.3 Mar 30, 2015

#1 in Data structures

Download history 290781/week @ 2020-11-07 306870/week @ 2020-11-14 282423/week @ 2020-11-21 312056/week @ 2020-11-28 318193/week @ 2020-12-05 308611/week @ 2020-12-12 232248/week @ 2020-12-19 218773/week @ 2020-12-26 353999/week @ 2021-01-02 447352/week @ 2021-01-09 415874/week @ 2021-01-16 455060/week @ 2021-01-23 464518/week @ 2021-01-30 466711/week @ 2021-02-06 465235/week @ 2021-02-13 446515/week @ 2021-02-20

1,267,177 downloads per month
Used in 7,905 crates (1,882 directly)

MIT license

170KB
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 = "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"] }

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