commit | ee3fea9bc02e671e75f880b0150b6a87cba5bac5 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Mon Aug 05 19:12:33 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Mon Aug 05 19:12:33 2024 +0000 |
tree | c04d11f23cfffad3c168d7afb69b7a7a62c8f9b5 | |
parent | 5e8ee5e80095479904afea0e99f28e20c8e6dc4e [diff] | |
parent | e86d70bc508a44b2132a46b9a9748e71d6d45d23 [diff] |
Generate license header with cargo_embargo. am: 21f1ba29b9 am: e86d70bc50 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/3206611 Change-Id: Ic45d40d4f805e6944cdbf9634eddd08751e95c0d 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.