| commit | 57d6fd698cca4222f46db777091fe8caeae784d2 | [log] [tgz] |
|---|---|---|
| author | James Farrell <[email protected]> | Thu May 09 20:27:23 2024 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Thu May 09 20:27:23 2024 +0000 |
| tree | c85167fc0032dfd4fc26805b9f2aa693a1d02a12 | |
| parent | 75e1806b3489a94e7e4659a4bbec749b30c5b988 [diff] | |
| parent | 8fe4ed1ddbc315962dfccda375171248080ce198 [diff] |
Update Android.bp by running cargo_embargo am: 397ca1c45f am: 8fe4ed1ddb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/3079692 Change-Id: I6746c4330b5037f60f42263710e23e3be80e378e Signed-off-by: Automerger Merge Worker <[email protected]>
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.