commit | 88035caf5cf7d9376d14f25cf23ccb5d5da06587 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri May 26 10:17:25 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri May 26 10:17:25 2023 +0000 |
tree | 1b8a2e533e43841e452dbd543a352a41bda313b9 | |
parent | b528b0d5ba2b2041c08cfd26be075a7fbe4d40ac [diff] | |
parent | 77922563f4024836b484b2c4b2060f9ecd33d5ce [diff] |
Snap for 10209341 from 77922563f4024836b484b2c4b2060f9ecd33d5ce to mainline-healthfitness-release Change-Id: I1d6031a69ea157d001953b431787034f66b2e94c
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.