commit | 073a8f76e3f94372ed2c11d71efbfcb2b168b424 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Wed May 12 11:35:36 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed May 12 11:35:36 2021 +0000 |
tree | b542d91c6067bc477d8e7c59882c3e7db2a7ce25 | |
parent | 5da4abf74730ecd3273fc0df8356108bbad5a5f1 [diff] | |
parent | 6444d6d9723969c1df31a1243d3d9458e10c152a [diff] |
Make libbytes available to DnsResolver am: d9cb43597f am: 1c22cca4a7 am: 3150f0c597 am: 6444d6d972 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1705165 Change-Id: I5623ad6a576956e327feefa070d64b659f85b1df
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.