[automerger skipped] Merge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master am: 5168419754 -s ours

am skip reason: Merged-In Ie9530839cafc65f1370ab30e46f6027f92bfe09b with SHA-1 5cf68aff60 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/16278287

Change-Id: Ideb64b1a6321287b4b545694c44bf15c5ca0dd13
tree: f96fd4907e26c5d6c86d96259550bfe904d686be
  1. .github/
  2. benches/
  3. ci/
  4. patches/
  5. src/
  6. tests/
  7. .cargo_vcs_info.json
  8. .gitignore
  9. Android.bp
  10. Cargo.toml
  11. Cargo.toml.orig
  12. cargo2android.json
  13. CHANGELOG.md
  14. LICENSE
  15. METADATA
  16. MODULE_LICENSE_MIT
  17. OWNERS
  18. README.md
  19. TEST_MAPPING
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 = "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.