Skip to content

2017-04-12

Compare
Choose a tag to compare
@colin-kiegel colin-kiegel released this 25 Apr 14:31
· 209 commits to master since this release

Added

  • customize setter names via #[builder(setter(name="..."))]
  • customize build_fn name via #[builder(build_fn(name="..."))]
  • suppress build method generation via #[builder(build_fn(skip))]
  • derive additional traits via #[builder(derive(Trait1, Trait2, ...))]
  • set field visibility separate from setter visibility via
    #[builder(field(private))] at the field or struct level

Deprecated

  • builder fields will no longer be public by default in 0.5.0; relying on this
    will now emit a deprecation warning. Fields can be explicitly made public at
    the struct or field level using the new #[builder(field(public))]
    attribute. To squelch this warning and opt-into the new behaviour, use the
    private_fields crate feature or explicitly set field visibility at the
    struct level.