commit | 77379911e99685160b9ddf99354b1b6ee2fe8eb0 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Dec 17 02:16:58 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Dec 17 02:16:58 2023 +0000 |
tree | a977dd041a4245f8ccfb80f4cefe3815f1063f45 | |
parent | 6747166084e731ce4b0d624b4e23368d3bf2ac81 [diff] | |
parent | b903f9786b0184cca6314692446873fed70f8bdc [diff] |
Snap for 11228863 from b903f9786b0184cca6314692446873fed70f8bdc to emu-34-release Change-Id: Ib6b1d0fc41c0ec62f164b395fc8f83cf2af45b64
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.