binrw 0.15.1

A Rust crate for helping read structs from binary data using ✨macro magic✨
Documentation
1
2
3
4
5
6
7
use binrw::BinRead;

#[derive(BinRead)]
#[br(assert(false, String::from("message"), "too", "many", "arguments"))]
struct Foo;

fn main() {}