commit | 59606a030839fe44d2d99a3aaa057c437098edf1 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Jan 31 20:36:25 2024 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Wed Jan 31 20:36:25 2024 +0100 |
tree | 81816b9f6326852b9caecb7de2a206765829830f | |
parent | b903f9786b0184cca6314692446873fed70f8bdc [diff] |
Upgrade bytes to 1.5.0 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/rust/crates/bytes For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: I0304154200c646918f8e8dadc3bde527a490cedd
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"] }
When building the bytes
documentation the docsrs
option should be used, otherwise feature gates will not be shown. This requires a nightly toolchain:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc
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.