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