constructor-lite 0.3.0

Generate minimal constructors for structs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use constructor_lite::ConstructorLite;

struct DoesNotImplementDefault();

#[derive(ConstructorLite)]
struct Foo {
    #[constructor(default)]
    bar: DoesNotImplementDefault,
    //~^ ERROR mismatched types
}

fn main() {}