Lokathor/bytemuck
A crate for mucking around with piles of bytes observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 96
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 2540
- days_rel: n/a
- days_push: 26
- n_releases_24m: 0
Adoption not part of the score
1049 stars · 111 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rust library for safely bit-casting (transmuting) between plain data types and byte slices, with traits like Pod, NoUninit, and AnyBitPattern to enforce memory safety. It is widely used to reinterpret slices of structs as raw bytes, e.g. for sending vertex data to the GPU.
Use cases
- cast a slice of structs to bytes for uploading to the GPU
- safely transmute between plain data types in Rust
- reinterpret a byte buffer as a different type
- zero-copy serialization of plain-old-data structs
- convert between u8 slices and typed slices
- derive Pod/Zeroable traits for my structs
When to choose
- you need to reinterpret memory between types without copying
- you're preparing vertex or uniform data for graphics APIs like wgpu
- you want checked or must-cast transmutes with safety traits instead of raw unsafe transmute
- you need a tiny, stable, no_std-friendly dependency
When to avoid
- your types contain pointers, references, or heap data (not plain old data)
- you need general serialization to portable formats like JSON or protobuf
- you only need simple numeric conversions that the `as` keyword or From/Into already handle
Facets
library · maturity stable
serialization developer-tools developer-tools graphics programming-languages rust cross-platform wasm bit-casting transmute pod zero-copy gpu-data unsafe-rust bytes
10 sources
- readme: https://github.com/Lokathor/bytemuck · fetched 2026-08-28 · a3f6dd28e550
- homepage: https://docs.rs/bytemuck · fetched 2026-08-29 · 41b2a2278e67
- site_page: https://docs.rs/ · fetched 2026-08-29 · f4444a44113e
- site_page: https://docs.rs/crate/bytemuck/latest · fetched 2026-08-29 · 35afdbaa5411
- site_page: https://docs.rs/crate/bytemuck/latest/features · fetched 2026-08-29 · 7f8a20d88f74
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Lokathor/bytemuck | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="Lokathor/bytemuck")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem