rust-derive-builder icon indicating copy to clipboard operation
rust-derive-builder copied to clipboard

derive builder implementation for rust structs

Results 21 rust-derive-builder issues
Sort by recently updated
recently updated
newest added

With #72 (fallible setters) merged and rust-lang/rust#33417 (`TryFrom`) approaching stabilization, having a `TryFrom for Target` implementation for all builders with a generated `build` method will enable the following code: ```rust...

enhancement
P-low

Derive Eq and PartialEq on BuilderError. #256

I'm wrapping the error generated by derive_buidler. The error wrapper that I'm creating derives `Eq` and `PartialEq`: it needs to derive those traits because my test suite is built by...

In [Arti](https://arti.torproject.org/), we are using `derive_builder` for our configuration. Arti's configuration is fairly complicated, and isn't simply a flat list of keys and values. Higher-level configuration structs contain lower-level ones....

This builds on the codegen #245 to provide the ability to sensibly nest structs with builders. With this, our code in Arti can do this: ``` #[derive(Clone, Builder, Debug, Eq,...

This reference lists all supported attributes alphabetically. It should in future link to examples and higher-level documentation. Part of #232

We have two parallel problems: 1. It's hard for crate users to find all the options for builder attributes and their effects 2. It's hard for crate maintainers to make...

enhancement
help wanted
docs

"How it Works" example has ``` #[macro_use] extern crate derive_builder; ``` which is old style Rust and not very recognizable/usable to newbies (https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html). Below it, "Get Started" says "Add `use...

Our documentation still uses `#[macro_use] extern crate derive_builder;`, which has been deprecated since the 2018 edition. We should migrate our tests and examples to use `use derive_builder::Builder;`. # Open Questions...

enhancement
help wanted
docs

The docs say `TryFrom` and `TryInto` are unstable, but they were stabilized in 1.34.

help wanted
docs