Find a file
2020-07-07 01:28:47 +09:00
.github/workflows Use ThreadSanitizer CI setup that avoids false positives (#406) 2020-07-07 01:28:47 +09:00
benches Format with rustfmt (#389) 2020-05-22 13:17:30 +09:00
ci Use ThreadSanitizer CI setup that avoids false positives (#406) 2020-07-07 01:28:47 +09:00
src Add inline attribute to BytesMut::as_mut (#410) 2020-07-05 17:43:26 -07:00
tests Format with rustfmt (#389) 2020-05-22 13:17:30 +09:00
.gitignore Initial commit 2015-01-30 00:04:33 -08:00
Cargo.toml v0.5.5 2020-06-18 14:30:11 -07:00
CHANGELOG.md v0.5.5 2020-06-18 14:30:11 -07:00
LICENSE Clarify license as MIT (#216) 2018-06-18 12:49:34 -07:00
README.md Migrate CI to GitHub Actions (#392) 2020-05-25 01:41:45 +09:00

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.