Skip to content

0.4.0

Compare
Choose a tag to compare
@BrynCooke BrynCooke released this 31 Jul 18:33
· 102 commits to main since this release
beddb2b

#69 Add the ability to override the visibility of generated builder.

#[derive(buildstructor::Builder)]
pub struct MyStruct {
    simple: usize,
}

The generated constructor will have private visibility and the builder will be public.

#70 Add the ability to override the visibility of generated builder.

#3 Changed the storage of required but not yet supplied values to use MaybeUninit.
The tuple that represents the builder state stays the same memory layout regardless of if a field has been initialized or not.

This does not require any unsafe code!