commit | 6c384248956493e6fef2d95b88332b3ffd89ed2e | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Aug 15 01:51:01 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Aug 15 01:51:01 2024 +0000 |
tree | 28a50f69c3675f57d4bd7f866fe97da69e172005 | |
parent | e86d70bc508a44b2132a46b9a9748e71d6d45d23 [diff] | |
parent | b054c421014b942a3cc71125e58c165372688cf9 [diff] |
Migrate 25 crates to monorepo am: b054c42101 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/3219322 Change-Id: I73d3e1f4005a461cdf4cca628e4a2abaed46826d 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.