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