#binary-data #convert #structured #byte #parser #raw #struct

yanked restruct

Converts between raw bytes and structured data

3 releases

0.1.2 Feb 13, 2022
0.1.1 Oct 26, 2020
0.1.0 Apr 16, 2019

#126 in #structured

28 downloads per month
Used in 2 crates

MIT license

37KB
814 lines

restruct is used to interpret binary data stored in files or other sources or convert between C structs and Rust types and when using a parser-generator is considered disproportionate. It is a brainchild of Python's struct-module.

See the restruct_derive-crate for documentation.


lib.rs:

restruct is used to interpret binary data stored in files or other sources or convert between C structs and Rust types and when using a parser-generator is considered disproportionate. It is a brainchild of Python's struct-module.

See the restruct_derive-crate for documentation.

Dependencies

~3–14MB
~180K SLoC