Import bytes-0.5.4

* Add OWNERS and Android.bp

Bug: 143953733
Test: make
Change-Id: Ica69d7252abb1c2967f2c0e11a62d0bd83192fb3
53 files changed
tree: ded7cfd36c57807924e0b2e62439a8df9f6d32c1
  1. .cargo_vcs_info.json
  2. .gitignore
  3. Android.bp
  4. CHANGELOG.md
  5. Cargo.toml
  6. Cargo.toml.orig
  7. LICENSE
  8. METADATA
  9. MODULE_LICENSE_BSD_LIKE
  10. OWNERS
  11. README.md
  12. azure-pipelines.yml
  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.