tag | 254bf533d3a204d92517f89eb924768e4c6c1d16 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Apr 23 15:27:23 2024 -0700 |
object | 5c504f543bfd14c19ad08e1a1436ce41b16ffa7a |
Platform Tools Release 35.0.1 (11580240)
commit | 5c504f543bfd14c19ad08e1a1436ce41b16ffa7a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:13:58 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:13:58 2024 +0000 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | 965dd084636fa509233b7a25d35f8eb045726546 [diff] | |
parent | cd0dd69d68d350942dc4445e8c6176c28f3483b6 [diff] |
Snap for 11541002 from cd0dd69d68d350942dc4445e8c6176c28f3483b6 to sdk-release Change-Id: Ic86fcadfb19d73d24a490b1ca25d7451a513c151
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.