structio-derive 0.8.0

The optional #[derive(Structio)] for structio. Enable structio's `derive` feature rather than depending on this crate directly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Default, structio::Structio)]
#[structio(write_only)]
struct Gauge {
    #[structio(alias = "name")]
    label: String,
}

#[derive(Default, structio::Structio)]
#[structio(array)]
struct Point(#[structio(alias = "x")] f64, f64);

#[derive(Default, structio::Structio)]
struct Config {
    #[structio(skip, alias = "n")]
    cache: Vec<u8>,
}

fn main() {}