commit | dbcb0e1aa803b79a5baaf8b15743a9fc47c326ac | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:08:40 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Sep 10 23:08:40 2024 +0000 |
tree | 28a50f69c3675f57d4bd7f866fe97da69e172005 | |
parent | e5a7dc323c7b500bd7e683aaf9fcb5108343694e [diff] | |
parent | 6c384248956493e6fef2d95b88332b3ffd89ed2e [diff] |
Snap for 12349386 from 6c384248956493e6fef2d95b88332b3ffd89ed2e to sdk-release Change-Id: Ibc64fa53af965f6925daae42fcedd7770bc03761
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.