commit | 40a85d087587ee6d2d5b3fbf411a2ba9f2a16be7 | [log] [tgz] |
---|---|---|
author | Martin Geisler <mgeisler@google.com> | Fri Mar 17 21:12:37 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Mar 17 21:12:37 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | 95328e149a279f3a0ca4d95a820c1585bc8c533a [diff] | |
parent | d551420ca57114809eb041a198a88d3a0dd280f5 [diff] |
[automerger skipped] bytes: enable “serde” Cargo feature am: 86af907457 -s ours am: 77922563f4 -s ours am: d551420ca5 -s ours am skip reason: Merged-In I4709fb521feef7ffa519a47a32c80c290974f219 with SHA-1 5309249612 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/22119591 Change-Id: I87f5fe6b019832273a96136e7654eaf948031c5b 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.