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
1,267,177 downloads per month
Used in 7,905 crates
(1,882 directly)
170KB
2.5K
SLoC
Bytes
A utility library for working with bytes.
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.