Changed
- [BREAKING] Split the derive macro out to a separate procmacro
crate. This is considered a
breaking change because reexporting and/or renmaing the crate can now prevent
the generated code from finding the types it needs (see issue #101)
Fixed
- Marking a field as
#[deprecated]
now behaves properly -TypedBuilder
generated code itself does trigger the deprecation warning, and instead the
setter for that field now does. - The "fake"
build
method when required fields are not provided now returns
the never type ("!
"). Refer to PR #97 for more thorough explanation.
Added
- Support for setter method prefixes and suffixes
#[builder(field_defaults(setter(prefix = "...", suffix = "...")))]
.
This either prepends or appends the provided string to the setter method. This allows method names like:set_x()
,
with_y()
, orset_z_value()
.