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
8
9
use binrw::{helpers::until_eof, BinRead};

#[derive(BinRead)]
struct Foo {
    #[br(parse_with = until_eof::<Vec<u8>, _, _, _>, map = String::from_utf8_lossy)]
    a: String,
}

fn main() {}