Go to file
openharmony_ci ed8f1256d3
!3 third_party_rust_bytes修复README.OpenSource中多余字段
Merge pull request !3 from peizhe/master
2023-05-15 03:43:33 +00:00
.github/workflows Use ubuntu-latest instead of ubuntu-16.04 (#497) 2021-05-23 23:09:26 +09:00
benches Rename Buf/BufMut, methods to chunk/chunk_mut (#450) 2020-12-18 11:04:31 -08:00
ci ci: fetch cargo hack from github release (#507) 2021-08-24 12:33:16 +02:00
src Clarifying actions of clear and truncate. (#508) 2021-08-24 16:12:20 +02:00
tests impl From<Box<[u8]>> for Bytes (#504) 2021-08-24 12:42:22 +02:00
.gitignore Initial commit 2015-01-30 00:04:33 -08:00
BUILD.gn Add GN Build Files and Custom Modifications 2023-04-18 17:13:14 +08:00
Cargo.toml chore: prepare bytes v1.1.0 (#509) 2021-08-25 17:48:41 +02:00
CHANGELOG.md chore: prepare bytes v1.1.0 (#509) 2021-08-25 17:48:41 +02:00
LICENSE Clarify license as MIT (#216) 2018-06-18 12:49:34 -07:00
README.md chore: prepare v1.0.0 release (#453) 2020-12-22 15:30:20 -08:00
README.OpenSource 修复README.OpenSource多余字段 2023-05-11 09:25:23 +08:00

Bytes

A utility library for working with bytes.

Crates.io Build Status

Documentation

Usage

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

Serde support is optional and disabled by default. To enable use the feature serde.

[dependencies]
bytes = { version = "1", features = ["serde"] }

License

This project is licensed under the MIT license.

Contribution

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.