# google/zerocopy

Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to.

Repository: https://github.com/google/zerocopy
Canonical: https://ross.abutalabs.com/products/zerocopy
Homepage: https://discord.gg/MAvWH2R6zk
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: memory, memory-safety, performance, rust, zero-copy
Last push: 2026-08-26T20:11:55+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 1455, "days_push": 7, "days_rel": 27, "gap_med": 2.5, "n_releases_24m": 69}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2565, forks 176 (observed 2026-08-28T04:07:01.101479+00:00)

## What it is
A Rust library providing safe, zero-cost APIs for casting between byte sequences and typed values without copying memory. It encapsulates the unsafe transmutation logic so developers can perform zero-copy parsing and serialization without writing unsafe code themselves.

## Use cases
- parse network packets without copying bytes
- deserialize structs from raw byte buffers safely
- convert between byte slices and typed views
- avoid writing unsafe transmute code in Rust
- build zero-copy file format parsers
- interpret memory-mapped files as Rust structs

## When to choose
- you need zero-copy parsing or serialization in Rust with memory-safety guarantees
- you want to replace hand-written unsafe transmute code with audited safe APIs
- you're building performance-critical parsers for network protocols or file formats

## When to avoid
- you're working in a language other than Rust
- your data can be copied cheaply and standard serde serialization suffices
- you need schema-driven serialization with versioning rather than raw memory casting

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, developer-tools
- domain: programming-languages, performance, developer-tools
- platform: rust, cross-platform, embedded
- tags: zero-copy, memory-safety, unsafe-rust, type-punning, transmute, no-std

## Member repositories
- google/zerocopy (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:01.101479+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:23:26.399163+00:00, confidence not recorded.
  - homepage: https://discord.gg/MAvWH2R6zk (fetched 2026-08-29T10:05:53.141498+00:00, sha 34e7edd313c9)
  - registry_crates: https://crates.io/api/v1/crates/zerocopy (fetched 2026-08-29T10:05:53.150336+00:00, sha ad840cd9a776)
- Data as of 2026-08-30T08:39:29.467469+00:00.
