tag | c2e323bb98ceb101552ae184e8d7d453d2ac66a8 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu May 04 16:18:06 2023 -0700 |
object | 5b5f381445a44d478bf3e86b5d3b3a84070ad9a5 |
Platform Tools Release 34.0.1 (9680074)
commit | 5b5f381445a44d478bf3e86b5d3b3a84070ad9a5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 02 15:36:05 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 02 15:36:05 2023 +0000 |
tree | 3efb3fc7a75820446adc84e3eed6a22c9a300322 | |
parent | 0e87c15a6e7d0c2ed5c6dad7f067656c75b72ecd [diff] | |
parent | 07286a835f57d6d4f55e79ecbc62fcaa12d54e50 [diff] |
Snap for 9679998 from 07286a835f57d6d4f55e79ecbc62fcaa12d54e50 to sdk-release Change-Id: Id358d54310094983bbb3cfee31e301a34af77671
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.