Update TEST_MAPPING am: 199730d908 am: 4793c4dfd1 am: 2b02074bca am: c815d32d6f am: 12b2749abb

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

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