Skip to content

Releases: elastio/bon

v3.10.0

Choose a tag to compare

@github-actions github-actions released this 25 Aug 01:53
115d305

MSRV Update Notice

This release raises the minimum supported Rust version from 1.59.0 to 1.88.0. If you are on an older compiler, stay on bon@3.9.

The new MSRV also comes with the deprecation of the implied-bounds cargo feature. Implied bounds are now added by default without any feature gate, so be sure to remove that feature from your Cargo.toml if you have it enabled. It's currently a no-op, and it won't be removed until a major release, for which there are no plans yet.

The MSRV bump comes from the darling@0.24 update, which is the first version that uses syn@3.0.

Added

Changed

  • Bump MSRV to 1.88.0, move to the 2024 edition, update to syn@3.0 and darling@0.24 (#399)
  • Deprecate the implied-bounds cargo feature. Implied bounds are now generated by default (#399)

Internal

  • Regular maintenance (#392)

v3.9.3

Choose a tag to compare

@github-actions github-actions released this 15 Jun 10:06
0d44382

Fixed

  • Fix clippy::missing_docs_in_private_items triggering for start_fn members (#389)

v3.9.2

Choose a tag to compare

@github-actions github-actions released this 10 Jun 14:03
0f845dc

Fixed

  • Fix rust-analyzer "Go to Definition" inside #[builder] functions (#385)

Internal

v3.9.1

Choose a tag to compare

@github-actions github-actions released this 13 Mar 23:53
1f427d0

This is purely a minutiae update with zero changes to the Rust API. Enjoy the stability 🍸.

Fixed

  • Redistribute license files with the crates sources (#376)

Internal

  • Regular maintenance (#377)

v3.9.0

Choose a tag to compare

@github-actions github-actions released this 13 Feb 01:23
d87637c

Added

Internal

  • Regular maintenance (#365)

v3.8.2

Choose a tag to compare

@github-actions github-actions released this 08 Jan 13:24
9f43a1f

Fixed

  • Don't attempt to compile big default value showcases as ignored rust doctests (#360)

Internal

v3.8.1

Choose a tag to compare

@github-actions github-actions released this 08 Oct 12:31
b1d7dde

Fixed

  • Fix clippy::wrong_self_convention warning for fields with is_ prefix etc. (#349). Thanks @nicmue for the contribution!

Internal

  • Add a regression test for clippy::wrong_self_convention (#350)

v3.8.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 20:41
09b719a

Lint Update Notice

This release brings some rustdoc improvements and no other visible API changes except that rustc and clippy will start reporting some more true-positive lints. For example builder methods defined via an impl block annotated with #[bon] will now be correctly reported as unused if they are not used. Also, using a private type in a public builder method will trigger a private_interfaces lint now.

This is all thanks to the updated span handling design researched and implemented by @Eisverygoodletter. It's not clear what other new lints the new span handling may trigger in other realworld codebases. If you see a lint from the code generated by bon that you think shouldn't be there, please, open an issue, and it'll be fixed as soon as possible!

Changed

  • Make rustdoc source links for the starting function reference original function (#341). Thanks @Eisverygoodletter for the contribution!
  • Make rustdoc source links for setters/getters reference original member (#345)

Internal

v3.7.2

Choose a tag to compare

@github-actions github-actions released this 02 Sep 11:34
bbd8b09

Fixed

  • Add missing lifetime replacement for generic param declarations on derive(IntoFuture) impl block (#337)
  • Set the lower bound requirement of rustversion to v1.0.19 (#336). Thanks @Fokko for the contribution!

v3.7.1

Choose a tag to compare

@github-actions github-actions released this 19 Aug 19:48
bc940a1

This is a small patch release to make bon easier to package for Debian.

Other

  • Add Copyright header to the MIT License (#331)

Internal

  • Fix MSRV tests and lints from nightly 13-08-2025 (#329)
  • Revert refactoring PR 320 to make code compatible with darling 0.20 (#332)