clapfig 0.21.4

Rich, layered configuration for Rust CLI apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use clapfig::Schema;

// Generic structs can't have their schema emitted as a `static`, since
// type parameters aren't in scope at module level. The macro must reject
// these explicitly rather than letting the expansion produce a confusing
// scope error.
#[derive(Schema)]
struct WithGeneric<T> {
    value: T,
}

fn main() {}