Hacker News new | past | comments | ask | show | jobs | submit login

For such a problem, I really recommend https://kaitai.io/

From their website:

> Kaitai Struct is a declarative language used to describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.

They even have a Rust interface: https://github.com/kaitai-io/kaitai_struct_rust_runtime




A native Rust solution, with meta-programming: https://crates.io/crates/packed_struct (written by me)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: