commit | a549a09f0a1fcec96c89a5bc0c51f2c664d072f8 | [log] [tgz] |
---|---|---|
author | Martin Geisler <mgeisler@google.com> | Tue Feb 14 10:14:21 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Feb 14 10:14:21 2023 +0000 |
tree | 1192b14a0b0124806256c6939ace276a2183b81f | |
parent | 9e7729088fa674ce7220325c588a0564356a266d [diff] | |
parent | 851dae27291501164e6cd0857e98e96ff9ce58e4 [diff] |
bytes: enable “serde” Cargo feature am: 5309249612 am: 851dae2729 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/2430595 Change-Id: I2d7cd07c5f95a1e49c49d8bc8fbaa90113f15c37 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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"] }
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.