| Crates.io | bytes-cast-derive |
| lib.rs | bytes-cast-derive |
| version | 0.2.0 |
| created_at | 2021-01-15 13:34:27.12639+00 |
| updated_at | 2023-01-10 09:38:07.024361+00 |
| description | Safely re-interpreting &[u8] bytes as custom structs without copying, for efficiently reading structured binary data. Procedural macro for compile-time soundness checking. |
| homepage | |
| repository | https://foss.heptapod.net/octobus/rust/bytes-cast |
| max_upload_size | |
| id | 342382 |
| size | 17,266 |
bytes-cast-deriveThe #[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.