Releases: idanarye/rust-typed-builder
Releases · idanarye/rust-typed-builder
0.23.2 - 2025-11-19
0.23.1 - 2025-11-16
Fixed
- Clippy warnings for unused variables in the new default implementation.
0.23.0 - 2025-10-20
Changed
- Upgrae Rust edition to 2024.
- [BREAKING] When
defaultis an expression that uses previous fields,
it'll receive them as reference.
Added
default_whereoption to add generic bounds ondefault.builder_type(attributes(...))for adding attributes to the builder type
(mainly forderive)
Removed
- [BREAKING] The
Optionaltrait. This is an internal implementation
detail, but some users may have relied on it for customized flows.
0.22.0 - 2025-09-08
Added
- New optional alternate
transformsyntax using a full fn, to allow support for custom lifetimes, generics and a where clause to custom builder method.
Example:
#[derive(TypedBuilder)]
struct Foo {
#[builder(
setter(
fn transform<'a, M>(value: impl IntoValue<'a, String, M>) -> String
where
M: std::fmt::Display
{
value.into_value()
},
)
)]
s: String,
}0.21.2 - 2025-08-21
Fixed
- Recognize
TypeGroupwhen checking forOption.
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_invalidoption tostrip_optionto skip stripping for non-Option fields - Added
fallback_prefixandfallback_suffixoptions tostrip_optionfor customizing fallback method names - Added support for field defaults with
strip_optionand its fallback options
Changed
- Improved handling of
strip_optionto work better with field defaults - Made
strip_optionmore flexible with non-Option fields whenignore_invalidis 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 theboolvalue to the builder struct.
0.19.1 - 2024-07-14
Fixed
- Fix mutators for generic fields (see issue #149)