[package] authors = ["Sebastian Messmer "] categories = ["data-structures", "encoding", "memory-management", "network-programming", "no-std"] description = "The binary-layout library allows type-safe, inplace, zero-copy access to structured binary data. You define a custom data layout and give it a slice of binary data, and it will allow you to read and write the fields defined in the layout from the binary data without having to copy any of the data. It's similar to transmuting to/from a `#[repr(packed)]` struct, but much safer." documentation = "https://docs.rs/binary-layout" edition = "2021" homepage = "https://github.com/smessmer/binary-layout" keywords = ["binary", "layout", "data", "structured", "format"] license = "MIT OR Apache-2.0" name = "binary-layout" readme = "README.md" repository = "https://github.com/smessmer/binary-layout" rust-version = "1.59" version = "4.0.2" [dependencies] doc-comment = "^0.3" paste = "^1.0" thiserror = { version = "^1.0.29", optional = true } [dev-dependencies] rand = "^0.8" [features] default = ["std"] # TODO Once we're rust 1.60+ only, we should write "dep:thiserror" instead of "thiserror" std = ["thiserror"]