binread 2.2.0

A Rust crate for helping read structs from binary data using ✨macro magic✨
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use binread::BinRead;

// Errors on one field should not prevent the parser from surfacing errors on
// other fields
#[derive(BinRead)]
#[br(invalid_keyword_struct)]
struct Foo {
    #[br(invalid_keyword_struct_field_a)]
    a: i32,
    #[br(invalid_keyword_struct_field_b)]
    b: i32,
}

fn main() {}