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

macro no-std derive_builder_macro

Rust macro to automatically implement the builder pattern for arbitrary structs

11 unstable releases (4 breaking)

0.20.0 Feb 14, 2024
0.13.0 Jan 22, 2024
0.12.0 Nov 28, 2022
0.11.2 Apr 20, 2022
0.10.0 Mar 31, 2021

#2974 in Rust patterns

Download history 155825/week @ 2024-01-01 195912/week @ 2024-01-08 215571/week @ 2024-01-15 224224/week @ 2024-01-22 230027/week @ 2024-01-29 226522/week @ 2024-02-05 235816/week @ 2024-02-12 225460/week @ 2024-02-19 258326/week @ 2024-02-26 253629/week @ 2024-03-04 260448/week @ 2024-03-11 255206/week @ 2024-03-18 249887/week @ 2024-03-25 256913/week @ 2024-04-01 257679/week @ 2024-04-08 264895/week @ 2024-04-15

1,042,286 downloads per month
Used in 1,274 crates (via derive_builder)

MIT/Apache

145KB
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.7–1.1MB
~26K SLoC