commit | ecba80443959b72c8a35154b7ff2f5127bb74356 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Feb 11 20:23:25 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Feb 11 20:23:25 2022 +0000 |
tree | 0398c46dd980c4f297ce623d0bd7074bdf0c46ba | |
parent | 814616a4cbe334b0930601c2146f7402d8beb380 [diff] | |
parent | 4ad8f64feb7e17a7217f247ce93ffed7c4a66daa [diff] |
[automerger skipped] Empty merge of sc-v2-dev-plus-aosp-without-vendor@8084891 am: 4ad8f64feb -s ours am skip reason: Merged-In I54dc21712c4c79b978fe36a05e0e3e9c7c284c63 with SHA-1 37730ba648 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/16843767 Change-Id: I205640c0ad1e74b063b6ea3125225ed779ec1c50
A utility library for working with bytes.
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 is optional and disabled by default. To enable use the feature serde
.
[dependencies] bytes = { version = "1", features = ["serde"] }
This project is licensed under the MIT license.
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.