commit | a7df351187f97e5063057e783e107ba0474381f6 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu May 23 15:41:46 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu May 23 15:41:46 2024 +0000 |
tree | 21d9b489708c2160d77ca51271247b5ea4caed90 | |
parent | 3ba6af50d6f953f75f621221eef0d41df39934d1 [diff] | |
parent | 182067541fbdde60dbf10c9d375474d6a0bd26f9 [diff] |
Snap for 11880863 from 182067541fbdde60dbf10c9d375474d6a0bd26f9 to build-tools-release Change-Id: I0ef19ea6e376e33f196c32b95cbc80df4733f4b9
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.