#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

#2983 in Rust patterns

Download history 314353/week @ 2024-07-20 307002/week @ 2024-07-27 319341/week @ 2024-08-03 312691/week @ 2024-08-10 354514/week @ 2024-08-17 351337/week @ 2024-08-24 359968/week @ 2024-08-31 363037/week @ 2024-09-07 334504/week @ 2024-09-14 365135/week @ 2024-09-21 387896/week @ 2024-09-28 409412/week @ 2024-10-05 459594/week @ 2024-10-12 479746/week @ 2024-10-19 453138/week @ 2024-10-26 438058/week @ 2024-11-02

1,901,794 downloads per month
Used in 1,791 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