Skip to content

Releases: abdolence/rust-struct-builder

v0.5.3

Choose a tag to compare

@abdolence abdolence released this 05 Oct 07:49
592e72a

Highlights

  • The generated new() uses the shorthand field init, so clippy::redundant_field_names from Rust 1.99 no longer fails crates deriving Builder with -D warnings;
  • CI now runs clippy with warnings denied.

What's Changed

  • fix: use shorthand field init in generated new() by @abdolence in #11

Full Changelog: v0.5.2...v0.5.3

v0.5.2

Choose a tag to compare

@abdolence abdolence released this 27 Sep 10:38
de923a6

Highlights

  • Generated builder functions and the Init struct are documented, using the field doc comments, so #![deny(missing_docs)] passes;
  • New BuilderFieldNames derive with a FIELD_NAMES const;
  • Raw identifier fields, const generics and mixed lifetime/type generics support;
  • Non-string #[default] literals: #[default = 100], #[default = true].

Be aware of two changes when upgrading:

  • The minimum supported Rust version is now 1.71 (syn 3);
  • #[default = true] and #[default = false] were ignored in 0.5.1 and the field stayed required. Now they make the field optional, so remove such fields from new() and Init calls.

What's Changed

  • Update Rust crate syn to v2 by @renovate[bot] in #3
  • Update Rust crate syn to v3 by @renovate[bot] in #7
  • feat: generated docs, BuilderFieldNames derive and syn 3 for 0.5.2 by @abdolence in #8
  • fix: address 0.5.2 review findings before release by @abdolence in #9
  • chore: drop the missing readme from the rsb_test manifest by @abdolence in #10

Full Changelog: v0.5.1...v0.5.2

v0.5.1

Choose a tag to compare

@abdolence abdolence released this 09 Sep 14:31
e76120f

What's Changed

  • Configure Renovate by @renovate in #1
  • Updated docs and Cargo tags

Full Changelog: v0.5.0...v0.5.1

v0.5.0

Choose a tag to compare

@abdolence abdolence released this 04 Nov 09:49
  • Rust 2021 edition
  • Small clippy fixes