commit | 24579ad6fa081cb1480364a64f40df9e98932b6d | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 16:43:38 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 16:43:38 2021 +0000 |
tree | d23dfb693dc4a79074a2651cd2b702d543e27054 | |
parent | bac6775777a35f4cbdb1141048b7c8d2cceb1a30 [diff] | |
parent | 58d9e9909d9a614ceff3587b1ba8159cd4207cff [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: be00578079 am: 58d9e9909d Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bytes/+/1912620 Change-Id: I99f4f1bde5d4f91820ce1c4c0d7ff2bf38dc91e5
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.