Skip to content
Utilities for working with bytes
Branch: v0.4.x
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benches Optimize Inner::shallow_clone (#217) Jul 3, 2018
ci Whitelist false positive std (#234) Nov 17, 2018
src Panic in BytesMut::split_to when out of bounds (#252) (#253) Apr 2, 2019
tests Panic in BytesMut::split_to when out of bounds (#252) (#253) Apr 2, 2019
.gitignore Initial commit Jan 30, 2015
.travis.yml implement `Buf` and `BufMut` for `Either` (#225) Sep 3, 2018
CHANGELOG.md Fix a typo in CHANGELOG.md (#251) Mar 29, 2019
Cargo.toml Bump version to v0.4.12 (#250) Mar 6, 2019
LICENSE
README.md

README.md

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 = "0.4.12"

Next, add this to your crate:

extern crate bytes;

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 = "0.4.12", 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.

You can’t perform that action at this time.