derive_builder 0.20.2

Rust macro to automatically implement the builder pattern for arbitrary structs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg(compiletests)]

extern crate rustversion;
extern crate trybuild;

#[rustversion::stable(1.59)]
#[test]
fn compile_test() {
    let t = trybuild::TestCases::new();
    t.pass("tests/run-pass/*.rs");
    t.compile_fail("tests/compile-fail/*.rs");
}