commit | b054c421014b942a3cc71125e58c165372688cf9 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed Aug 14 18:59:46 2024 +0000 |
committer | James Farrell <[email protected]> | Wed Aug 14 19:31:20 2024 +0000 |
tree | 28a50f69c3675f57d4bd7f866fe97da69e172005 | |
parent | 21f1ba29b9e6c5b1e0326dfd2184de0debeab922 [diff] |
Migrate 25 crates to monorepo async-stream async-stream-impl async-task async-trait atomic atty axum bencher bincode bitreader bstr buddy_system_allocator byteorder bytes camino cast cesu8 cexpr cfg-if ciborium ciborium-io ciborium-ll clap_complete clap_derive clap_lex Bug: 339424309 Test: treehugger Change-Id: Ife93e8b208287137a5a421ac3d28c07d430f6875
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.