commit | 21f1ba29b9e6c5b1e0326dfd2184de0debeab922 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Mon Aug 05 17:45:18 2024 +0100 |
committer | Andrew Walbran <[email protected]> | Mon Aug 05 17:45:18 2024 +0100 |
tree | c04d11f23cfffad3c168d7afb69b7a7a62c8f9b5 | |
parent | 81ce1c8ce3b8671f0ebedbd7601e95a63ce64695 [diff] |
Generate license header with cargo_embargo. Bug: 333524428 Test: Ran cargo_embargo, compared Android.bp. Change-Id: Iff3f6de6ea3b18a579330e6addfa5fc14e01cf64
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.