30 releases

0.4.12 Mar 6, 2019
0.4.11 Nov 17, 2018
0.4.10 Sep 4, 2018
0.4.9 Jul 23, 2018
0.2.3 Mar 30, 2015

#2 in Data structures

Download history 53132/week @ 2019-01-20 55501/week @ 2019-01-27 54509/week @ 2019-02-03 60945/week @ 2019-02-10 59026/week @ 2019-02-17 67737/week @ 2019-02-24 72486/week @ 2019-03-03 77894/week @ 2019-03-10 73079/week @ 2019-03-17 66140/week @ 2019-03-24 72867/week @ 2019-03-31 77019/week @ 2019-04-07 67998/week @ 2019-04-14 63072/week @ 2019-04-21 63216/week @ 2019-04-28

262,279 downloads per month
Used in 2,655 crates (662 directly)

MIT license

190KB
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.4.12"

Next, add this to your crate:

extern crate bytes;

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.4.12", 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

~225KB