28 releases

0.4.10 Sep 4, 2018
0.4.9 Jul 23, 2018
0.4.8 May 25, 2018
0.4.6 Jan 8, 2018
0.2.3 Mar 30, 2015

#6 in Data structures

Download history 29231/week @ 2018-09-18 33064/week @ 2018-09-25 33215/week @ 2018-10-02 33646/week @ 2018-10-09 35883/week @ 2018-10-16 33254/week @ 2018-10-23 38494/week @ 2018-10-30 39366/week @ 2018-11-06 39494/week @ 2018-11-13 44595/week @ 2018-11-20 40501/week @ 2018-11-27 48975/week @ 2018-12-04 46462/week @ 2018-12-11

114,717 downloads per month
Used in 1,974 crates (350 directly)

MIT license

188KB
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"

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

~221KB