commit | 8e881b3f9d287c95945b44855e0c3582000723b5 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Thu Nov 09 16:21:22 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 09 16:21:22 2023 +0000 |
tree | a977dd041a4245f8ccfb80f4cefe3815f1063f45 | |
parent | 6494c2d4319dd5fbf4ee674d588ec7a0a23ddcc1 [diff] | |
parent | 52655199f2e3d613d69376f0bbf354afd8a67479 [diff] |
Migrate to cargo_embargo. am: aee1eb4a33 am: b903f9786b am: 52655199f2 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2823210 Change-Id: I46838ca68c99954f2980befb3540eceea05d79aa 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.