commit | ca21024f09bf82510c467863cc2e2d9facc83929 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Fri Dec 10 11:55:35 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 10 11:55:35 2021 +0000 |
tree | 17590e48904d98d0931840579430b324059d43f2 | |
parent | eecb860ac451d042b999b59a2baba15beb72021d [diff] | |
parent | 7369bd0ac7c5eaea8d39571ffc29e6db62906e7c [diff] |
Make libbytes available to CompOS am: c831f85db1 am: a6a5758e06 am: bac6775777 am: 7369bd0ac7 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1916478 Change-Id: I309f1bb9dedaf4dc9079ddd9bfdd259e31f1dede
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.