Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 23-Nov-2023 | - | 171 | 135 | ||
benches/ | 23-Nov-2023 | - | 574 | 497 | ||
ci/ | 23-Nov-2023 | - | 54 | 26 | ||
src/ | 23-Nov-2023 | - | 6,199 | 2,622 | ||
tests/ | 23-Nov-2023 | - | 1,622 | 1,201 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 20 | 3 | 2 | |
Android.bp | D | 23-Nov-2023 | 873 | 38 | 34 | |
CHANGELOG.md | D | 23-Nov-2023 | 5.7 KiB | 200 | 143 | |
Cargo.toml | D | 23-Nov-2023 | 1.2 KiB | 38 | 35 | |
Cargo.toml.orig | D | 23-Nov-2023 | 824 | 35 | 29 | |
LICENSE | D | 23-Nov-2023 | 1 KiB | 26 | 22 | |
METADATA | D | 23-Nov-2023 | 367 | 20 | 19 | |
MODULE_LICENSE_MIT | D | 23-Nov-2023 | 0 | |||
NOTICE | D | 23-Nov-2023 | 1 KiB | 26 | 22 | |
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 1 KiB | 48 | 31 | |
cargo2android.json | D | 23-Nov-2023 | 195 | 11 | 11 |
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