Sha256: c1b2b54999d4829f9f64fb41cbdf05a72d565be0dd078a8633d34631147498a1

Contents?: true

Size: 1.25 KB

Versions: 26

Compression:

Stored size: 1.25 KB

Contents

# Bytes

A utility library for working with bytes.

[![Crates.io][crates-badge]][crates-url]
[![Build Status][ci-badge]][ci-url]

[crates-badge]: https://img.shields.io/crates/v/bytes.svg
[crates-url]: https://crates.io/crates/bytes
[ci-badge]: https://github.com/tokio-rs/bytes/workflows/CI/badge.svg
[ci-url]: https://github.com/tokio-rs/bytes/actions

[Documentation](https://docs.rs/bytes)

## Usage

To use `bytes`, first add this to your `Cargo.toml`:

```toml
[dependencies]
bytes = "1"
```

Next, add this to your crate:

```rust
use bytes::{Bytes, BytesMut, Buf, BufMut};
```

## Serde support

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

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

## Building documentation

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
```

## License

This project is licensed under the [MIT license](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.

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/bytes-1.9.0/README.md
wasmtime-28.0.0 ./ext/cargo-vendor/bytes-1.9.0/README.md
wasmtime-27.0.0 ./ext/cargo-vendor/bytes-1.8.0/README.md
wasmtime-26.0.0 ./ext/cargo-vendor/bytes-1.8.0/README.md
wasmtime-25.0.2 ./ext/cargo-vendor/bytes-1.7.1/README.md
wasmtime-25.0.1 ./ext/cargo-vendor/bytes-1.7.1/README.md
wasmtime-25.0.0 ./ext/cargo-vendor/bytes-1.7.1/README.md
wasmtime-24.0.0 ./ext/cargo-vendor/bytes-1.7.1/README.md
wasmtime-23.0.2 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-22.0.0 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-21.0.1 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-20.0.2 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-20.0.0 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-18.0.3 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-17.0.1 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-17.0.0 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-16.0.0 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-15.0.1 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-15.0.0 ./ext/cargo-vendor/bytes-1.5.0/README.md
wasmtime-14.0.4 ./ext/cargo-vendor/bytes-1.5.0/README.md