Platform Tools Release 30.0.5 (6877874)
Snap for 6877830 from 269eafe411d5591ff719a20d25e9483c936d2017 to sdk-release

Change-Id: I4c0c300644ec582479970ec68187c9b7d55444b9
tree: f499eba51cf0c39ec3577801449bc0cf8488ea45
  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. CHANGELOG.md
  12. LICENSE
  13. METADATA
  14. MODULE_LICENSE_BSD_LIKE
  15. OWNERS
  16. README.md
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.