commit | 2a5d8e51140b5eeba2b66c57e7617baf44b0a433 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 14 18:11:07 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 14 18:11:07 2024 +0000 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | 59606a030839fe44d2d99a3aaa057c437098edf1 [diff] | |
parent | cd0dd69d68d350942dc4445e8c6176c28f3483b6 [diff] |
Snap for 11574415 from cd0dd69d68d350942dc4445e8c6176c28f3483b6 to emu-35-1-release Change-Id: I1cca1a61d240529815be99afd0f7335926073f52
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.