commit | cd0dd69d68d350942dc4445e8c6176c28f3483b6 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Thu Feb 01 10:42:40 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Feb 01 10:42:40 2024 +0000 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | 7149c1ae8b180815c9df40ee0d070f4768a4a4ba [diff] | |
parent | 59606a030839fe44d2d99a3aaa057c437098edf1 [diff] |
Upgrade bytes to 1.5.0 am: 59606a0308 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2941305 Change-Id: I28d56a25567426ba40f2431995632bd12475a522 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.