commit | 027b06f51ff7b7c5005012734ca1f078f5effb51 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Feb 02 00:11:15 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Feb 02 00:11:15 2024 +0000 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | 7149c1ae8b180815c9df40ee0d070f4768a4a4ba [diff] | |
parent | 37e0fea8d141a72910ead1c60d74b4e9f88a846d [diff] |
Snap for 11392706 from 37e0fea8d141a72910ead1c60d74b4e9f88a846d to 24Q2-release Change-Id: I7000966cba4df14eac79b9c829a001916ab8e78e
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.