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
// A variant carrying a value, in the macro whose whole promise is that the
// value is a bare name. The refusal has to send it to `tagged_enum!` rather
// than report a matcher error pointed into this crate.
#[derive(Default)]
enum Level {
    #[default]
    Info,
    Custom(String),
}

structio::unit_enum!(Level { Info, Custom(_) });

fn main() {}