structio 0.8.0

High performance JSON and BEVE for Rust structs. No dependencies, no proc-macros, no intermediate representation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct UserId(u64);

// The struct's own spelling, which is the one people reach for first.
structio::transparent!(UserId(0));

struct Pair {
    a: u32,
    b: u32,
}

// Two fields in the braces, which is not a field list this macro takes.
structio::transparent!(Pair { a, b });

fn main() {}