binrw 0.15.1

A Rust crate for helping read structs from binary data using ✨macro magic✨
Documentation
use binrw::BinRead;

#[derive(BinRead)]
struct Foo {
    #[br(err_context("too", "many", "arguments"))]
    a: u8,
}

#[derive(BinRead)]
struct Bar {
    #[br(err_context())]
    b: u8,
}

#[derive(BinRead)]
struct Baz {
    #[br(err_context(a, b))]
    c: u8,
}

fn main() {}