bytes-cast-derive

Crates.iobytes-cast-derive
lib.rsbytes-cast-derive
version0.2.0
sourcesrc
created_at2021-01-15 13:34:27.12639
updated_at2023-01-10 09:38:07.024361
descriptionSafely re-interpreting &[u8] bytes as custom structs without copying, for efficiently reading structured binary data. Procedural macro for compile-time soundness checking.
homepage
repositoryhttps://foss.heptapod.net/octobus/rust/bytes-cast
max_upload_size
id342382
size17,266
Raphaël Gomès (Alphare)

documentation

README

bytes-cast-derive

The #[derive(BytesCast)] procedural macro for the bytes-cast crate. This statically checks the safety invariants required of custom structs.

This crate contains code derived from https://github.com/Lokathor/bytemuck.

Commit count: 0

cargo fmt