Builder derive crates
Recipe | Crates | Categories |
---|---|---|
bon | ||
derive_builder | ||
typed-builder |
typed-builder
Compile-time type-checked builder derive. The oldest crate for compile-time-checked builders that has (987K downloads/month, 916 stars, 7 years old)
derive_builder
Rust macro to automatically implement the builder pattern for arbitrary structs.
runtime-checked builders, works with &self, &mut self builder patterns. The oldest crate for runtime-checked builders overall (1,58M downloads/month, 1285 stars, 8 years old)
bon
Next-gen compile-time-checked builder generator, named function arguments.
bon - compile-time-checked builders, named function arguments via builders (foo().arg(...).call()), fallible/async builders, method builders (self.foo(...).arg(...).call()). The newest crate built based on lessons learned from typed-builder and derive_builder (33K downloads/month, but gaining popularity, 1095 stars, 3 months old).