commit | b903f9786b0184cca6314692446873fed70f8bdc | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Thu Nov 09 13:41:52 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 09 13:41:52 2023 +0000 |
tree | a977dd041a4245f8ccfb80f4cefe3815f1063f45 | |
parent | d551420ca57114809eb041a198a88d3a0dd280f5 [diff] | |
parent | aee1eb4a3309cf6222b07213c6e26fac45588718 [diff] |
Migrate to cargo_embargo. am: aee1eb4a33 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2823210 Change-Id: Icf3899e6932ef75163fad679e59552aff54bbdd0 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.