commit | dce807ebcf1bb09609b2dcfca18829d5ea301dda | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Mar 18 04:54:13 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Mar 18 04:54:13 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | a12af40ad467148f5343b929b4a5f4b551c3901c [diff] | |
parent | 00173c7898e253cb8f3200be24767c978b3eaffa [diff] |
Snap for 9769041 from 77922563f4024836b484b2c4b2060f9ecd33d5ce to udc-release am: 00173c7898 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/22148929 Change-Id: Ic0a66b526f0261cb37548d943d65264795ca49c5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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"] }
When building the bytes
documentation the docsrs
option should be used, otherwise feature gates will not be shown. This requires a nightly toolchain:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc
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.