# tokio-rs/bytes

Utilities for working with bytes

Repository: https://github.com/tokio-rs/bytes
Canonical: https://ross.abutalabs.com/products/bytes
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-07-16T10:44:21+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 80, longevity 100
- inputs: {"age_days": 4233, "days_push": 48, "days_rel": 56, "gap_med": 51.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2249, forks 350 (observed 2026-08-28T04:06:30.339693+00:00)

## What it is
A Rust library providing types and traits (Bytes, BytesMut, Buf, BufMut) for efficiently working with byte buffers, including zero-copy operations. It supports no_std environments and optional Serde serialization.

## Use cases
- handle byte buffers in rust efficiently
- zero-copy byte slicing for network protocols
- read and write binary data with Buf traits
- use byte buffers in no_std embedded rust
- serialize byte buffers with serde

## When to choose
- you need efficient, zero-copy byte buffer management in Rust
- you are building network or IO code that manipulates bytes
- you need no_std or embedded support for byte handling

## When to avoid
- you only need simple Vec<u8> usage without performance constraints
- you need higher-level serialization formats rather than raw bytes

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, programming-languages, performance
- platform: rust, cross-platform, embedded
- tags: buffers, zero-copy, no-std, io, rust-library

## Member repositories
- tokio-rs/bytes (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:30.339693+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:43:55.170532+00:00, confidence not recorded.
  - readme: https://github.com/tokio-rs/bytes (fetched 2026-08-28T04:06:30.339693+00:00, sha 275ac7bc295e)
  - registry_crates: https://crates.io/api/v1/crates/bytes (fetched 2026-08-29T10:24:03.372129+00:00, sha 46fb696ae288)
- Data as of 2026-08-30T08:39:29.467469+00:00.
