commit | 814616a4cbe334b0930601c2146f7402d8beb380 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Thu Jan 27 22:24:37 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jan 27 22:24:37 2022 +0000 |
tree | 0398c46dd980c4f297ce623d0bd7074bdf0c46ba | |
parent | b15e80c995695f9f15e7fc6351612fff26c37621 [diff] | |
parent | 55fedc3f5bf59349f9ebceee4483ada08b5b0fa1 [diff] |
Make vendor available am: 3347351bae am: 4925daf1b4 am: 55fedc3f5b Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1960592 Change-Id: I813c7420c2aa97b3da6bbf6f964b35d66cb3c781
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.