tag | f6ce2522651100f52e03b90a251dfef02d009436 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 16 21:53:01 2023 -0700 |
object | 3b4036c6f91bf1225906aa97f03a175241f50dc6 |
Platform Tools Release 34.0.3 (9979309)
commit | 3b4036c6f91bf1225906aa97f03a175241f50dc6 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 20 16:05:07 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 20 16:05:07 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | 5b5f381445a44d478bf3e86b5d3b3a84070ad9a5 [diff] | |
parent | 21a5665303fca913658d55ea6c4f104db0e00472 [diff] |
Snap for 9979206 from 21a5665303fca913658d55ea6c4f104db0e00472 to sdk-release Change-Id: I1dba1bee668b980008d225900efb19c029e8cba9
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.