github idanarye/rust-typed-builder v0.15.0
0.15.0 - 2023-07-06

latest releases: v0.20.1, v0.20.0, v0.19.1...
one day ago

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(), or set_z_value().

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

NewReleases is sending notifications on new releases.