buildstructor 0.6.0

Macro to derive a builder from a constructor function.
Documentation
use buildstructor::buildstructor;

pub struct Async {
    simple: usize,
}

#[buildstructor]
impl Async {
    #[builder]
    async fn new(simple: usize) -> Async {
        Self { simple }
    }
}

#[tokio::main]
async fn main() {
    let asc = Async::builder().simple(2).build().await;
    assert_eq!(asc.simple, 2);
}