33 releases

✓ Uses Rust 2018 edition

0.5.5 Jun 18, 2020
0.5.4 Jan 23, 2020
0.5.3 Dec 12, 2019
0.5.2 Nov 27, 2019
0.2.3 Mar 30, 2015

#3 in Data structures

Download history 193335/week @ 2020-03-16 200994/week @ 2020-03-23 207181/week @ 2020-03-30 204222/week @ 2020-04-06 205690/week @ 2020-04-13 224496/week @ 2020-04-20 227784/week @ 2020-04-27 222412/week @ 2020-05-04 254284/week @ 2020-05-11 237547/week @ 2020-05-18 237218/week @ 2020-05-25 263218/week @ 2020-06-01 267493/week @ 2020-06-08 248350/week @ 2020-06-15 255299/week @ 2020-06-22 236010/week @ 2020-06-29

983,056 downloads per month
Used in 5,628 crates (1,291 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 = "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

~170KB