Skip to content

Releases: idanarye/rust-typed-builder

0.21.2 - 2025-08-21

21 Aug 12:01
Compare
Choose a tag to compare

Fixed

  • Recognize TypeGroup when checking for Option.

0.21.1 - 2025-08-12

12 Aug 13:24
Compare
Choose a tag to compare

Fixed

  • Strip raw ident prefix from base method name before assembling prefixed/suffixed fallback method names

0.21.0 - 2025-03-20

20 Mar 12:52
Compare
Choose a tag to compare

Added

  • Added ignore_invalid option to strip_option to skip stripping for non-Option fields
  • Added fallback_prefix and fallback_suffix options to strip_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 when ignore_invalid is set

0.20.1 - 2025-03-14

14 Mar 00:25
Compare
Choose a tag to compare

Fixed

  • Fix mutator with type parameter using associated type (see issue #157)

0.20.0 - 2024-08-22

14 Mar 00:25
Compare
Choose a tag to compare

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 the bool value to the builder struct.

0.19.1 - 2024-07-14

14 Mar 00:25
Compare
Choose a tag to compare

Fixed

  • Fix mutators for generic fields (see issue #149)

0.18.2 - 2024-04-16

14 Mar 00:25
Compare
Choose a tag to compare

Fixed

  • Also add the licenses to the macro crate.

0.18.1 - 2024-01-17

14 Mar 00:25
Compare
Choose a tag to compare

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

14 Mar 00:25
Compare
Choose a tag to compare

Fixed

  • ?Sized generic parameters are now supported.

0.17.0 - 2023-10-15

14 Mar 00:25
Compare
Choose a tag to compare

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 with mutators
  • mutable_during_default_resolution to allow default expression mutate
    previous fields.

Fixed

  • Add support for paths with angle brackets (see PR #122 )