Upgrade rust/crates/bytes to 0.5.6

Change-Id: Ib95c402dc50956f33008f634e79291a91157cc8d
23 files changed
tree: 50b5094b1c55ce2b1bdc01c11e9a741031561006
  1. .cargo_vcs_info.json
  2. .github/
  3. .gitignore
  4. Android.bp
  5. CHANGELOG.md
  6. Cargo.toml
  7. Cargo.toml.orig
  8. LICENSE
  9. METADATA
  10. MODULE_LICENSE_BSD_LIKE
  11. OWNERS
  12. README.md
  13. benches/
  14. ci/
  15. src/
  16. tests/
README.md

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.