Releases: idanarye/rust-typed-builder
Releases · idanarye/rust-typed-builder
0.21.2 - 2025-08-21
0.21.1 - 2025-08-12
Fixed
- Strip raw ident prefix from base method name before assembling prefixed/suffixed fallback method names
0.21.0 - 2025-03-20
Added
- Added
ignore_invalid
option tostrip_option
to skip stripping for non-Option fields - Added
fallback_prefix
andfallback_suffix
options tostrip_option
for customizing fallback method names - Added support for field defaults with
strip_option
and its fallback options
Changed
- Improved handling of
strip_option
to work better with field defaults - Made
strip_option
more flexible with non-Option fields whenignore_invalid
is set
0.20.1 - 2025-03-14
Fixed
- Fix mutator with type parameter using associated type (see issue #157)
0.20.0 - 2024-08-22
Added
- Add
#[builder(setter(strip_option(fallback = field_opt)))]
to add a fallback unstripped method to the builder struct. - Add
#[builder(setter(strip_bool(fallback = field_bool)))]
to add a fallback setter that takes thebool
value to the builder struct.
0.19.1 - 2024-07-14
Fixed
- Fix mutators for generic fields (see issue #149)
0.18.2 - 2024-04-16
Fixed
- Also add the licenses to the macro crate.
0.18.1 - 2024-01-17
Fixed
- Add
#[allow(clippy::no_effect_underscore_binding)]
to generated methods
that need to destructure intermediate builder state. - Use a proper
OR
syntax for the dual license.
0.18.0 - 2023-10-19
Fixed
?Sized
generic parameters are now supported.
0.17.0 - 2023-10-15
Changed
- Internal refactor of attribute parsing - results in better error messages and
easier proces for adding new settings.
Added
#[builder(mutators(...))]
to generate functions on builder to mutate fields#[builder(via_mutator)]
on fields to allow defining fields initialized
during::builder()
for use withmutators
mutable_during_default_resolution
to allowdefault
expression mutate
previous fields.
Fixed
- Add support for paths with angle brackets (see PR #122 )