github idanarye/rust-typed-builder v0.22.0
0.22.0 - 2025-09-08

21 hours ago

Added

  • New optional alternate transform syntax 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,
}

Don't miss a new rust-typed-builder release

NewReleases is sending notifications on new releases.