#derive-builder #builder #struct #derive #macro-derive #macro #setter

macro no-std derive_builder_macro

Rust macro to automatically implement the builder pattern for arbitrary structs

13 unstable releases (4 breaking)

0.20.2 Oct 8, 2024
0.20.0 Feb 14, 2024
0.12.0 Nov 28, 2022
0.11.2 Apr 20, 2022
0.10.0 Mar 31, 2021

#2958 in Rust patterns

Download history 302988/week @ 2024-07-12 316003/week @ 2024-07-19 306907/week @ 2024-07-26 312617/week @ 2024-08-02 321738/week @ 2024-08-09 344161/week @ 2024-08-16 350106/week @ 2024-08-23 357019/week @ 2024-08-30 369462/week @ 2024-09-06 329317/week @ 2024-09-13 372272/week @ 2024-09-20 381947/week @ 2024-09-27 402442/week @ 2024-10-04 449747/week @ 2024-10-11 474231/week @ 2024-10-18 469238/week @ 2024-10-25

1,862,698 downloads per month
Used in 1,767 crates (via derive_builder)

MIT/Apache

140KB
2.5K SLoC

Build Latest version All downloads Downloads of latest version

Crate derive_builder_macro

Important Note:

  • You are probably looking for the derive_builder crate, which wraps this crate and is much more ergonomic to use.

Purpose

This is an internal helper library of derive_builder.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.6–1MB
~23K SLoC