commit | fd1f15097405247ad96f2f80a0427baab9fe9a52 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Thu Nov 09 14:58:58 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 09 14:58:58 2023 +0000 |
tree | a977dd041a4245f8ccfb80f4cefe3815f1063f45 | |
parent | 52655199f2e3d613d69376f0bbf354afd8a67479 [diff] | |
parent | 73a64d8c6e18012250b6507d1f59c481d4b40aa3 [diff] |
Migrate to cargo_embargo. am: aee1eb4a33 am: 73a64d8c6e Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2823210 Change-Id: I69e0aba2b173b7bbe4dedff412f4a138a7b054e5 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.