• Home
Name
Date
Size
#Lines
LOC

..--

.github/workflows/03-May-2024-171135

benches/03-May-2024-574497

ci/03-May-2024-5426

src/03-May-2024-6,1992,622

tests/03-May-2024-1,6221,201

.cargo_vcs_info.jsonD03-May-202474 65

.gitignoreD03-May-202420 32

Android.bpD03-May-2024873 3834

CHANGELOG.mdD03-May-20245.7 KiB200143

Cargo.tomlD03-May-20241.2 KiB3835

Cargo.toml.origD03-May-2024824 3529

LICENSED03-May-20241 KiB2622

METADATAD03-May-2024367 2019

MODULE_LICENSE_MITD03-May-20240

NOTICED03-May-20241 KiB2622

OWNERSD03-May-202440 21

README.mdD03-May-20241 KiB4831

cargo2android.jsonD03-May-2024195 1111

README.md

1# Bytes
2
3A utility library for working with bytes.
4
5[![Crates.io][crates-badge]][crates-url]
6[![Build Status][ci-badge]][ci-url]
7
8[crates-badge]: https://img.shields.io/crates/v/bytes.svg
9[crates-url]: https://crates.io/crates/bytes
10[ci-badge]: https://github.com/tokio-rs/bytes/workflows/CI/badge.svg
11[ci-url]: https://github.com/tokio-rs/bytes/actions
12
13[Documentation](https://docs.rs/bytes)
14
15## Usage
16
17To use `bytes`, first add this to your `Cargo.toml`:
18
19```toml
20[dependencies]
21bytes = "1"
22```
23
24Next, add this to your crate:
25
26```rust
27use bytes::{Bytes, BytesMut, Buf, BufMut};
28```
29
30## Serde support
31
32Serde support is optional and disabled by default. To enable use the feature `serde`.
33
34```toml
35[dependencies]
36bytes = { version = "1", features = ["serde"] }
37```
38
39## License
40
41This project is licensed under the [MIT license](LICENSE).
42
43### Contribution
44
45Unless you explicitly state otherwise, any contribution intentionally submitted
46for inclusion in `bytes` by you, shall be licensed as MIT, without any additional
47terms or conditions.
48