tag | beec1ab7b833289aa2ec204b2bf2e231def36538 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Jan 04 17:04:34 2024 -0800 |
object | 3acfddd13c529f718509beb4abf9d6870991b747 |
frc_340819280 (11225212,com.google.android.art,com.google.android.go.art)
commit | 3acfddd13c529f718509beb4abf9d6870991b747 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 17:57:42 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 11 17:57:42 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | 9fbf4d29dd5527335398eee188a3dd2a3689bebb [diff] | |
parent | db3452951a0b4513e7417bc46d2a44272f8a87ac [diff] |
Snap for 9912757 from db3452951a0b4513e7417bc46d2a44272f8a87ac to aml-frc-release Change-Id: I7e9496a39dbd6666e92219ed4decc58f3d147e1d
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.