parsely-rs 0.1.6

Macro-based struct serialization/deserialization
Documentation
1
2
3
4
5
6
7
use parsely_rs::*;

#[derive(ParselyRead, ParselyWrite)]
struct Foo {
    #[parsely(assertion = "|v: &u8| *v % 2 == 0")]
    value: u8,
}