commit | 19a2b14555b9c92cb4d1342bccd211b334a0ab0b | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 04:42:37 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 04:42:37 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | b2a1942fdeb1984ab5baa0665776c7e7c6048a0b [diff] | |
parent | 84ad640730426064d81e25ce95a73f1c2ff59c64 [diff] |
Snap for 10453563 from 84ad640730426064d81e25ce95a73f1c2ff59c64 to mainline-art-release Change-Id: I213fd91208b162b746b256f41bca3c67779ecdf0
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.