google/zerocopy
Zerocopy makes zero-cost memory manipulation effortless. We write `unsafe` so you don’t have to. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 84
- Longevity 100
Flags: no_readme
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2.5
- age_days: 1455
- days_rel: 27
- days_push: 7
- n_releases_24m: 69
Adoption not part of the score
2565 stars · 176 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity stable
serialization parser developer-tools programming-languages performance developer-tools rust cross-platform embedded zero-copy memory-safety unsafe-rust type-punning transmute no-std
2 sources
- homepage: https://discord.gg/MAvWH2R6zk · fetched 2026-08-29 · 34e7edd313c9
- registry_crates: https://crates.io/api/v1/crates/zerocopy · fetched 2026-08-29 · ad840cd9a776
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/zerocopy | main | 94 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem