commit | 37e0fea8d141a72910ead1c60d74b4e9f88a846d | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Thu Feb 01 11:22:31 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Feb 01 11:22:31 2024 +0000 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | 7149c1ae8b180815c9df40ee0d070f4768a4a4ba [diff] | |
parent | cd0dd69d68d350942dc4445e8c6176c28f3483b6 [diff] |
Upgrade bytes to 1.5.0 am: 59606a0308 am: cd0dd69d68 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2941305 Change-Id: I2e9f510c2202621f371e462114018dcdeb2ad09d Signed-off-by: Automerger Merge Worker <[email protected]>
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.