Releases: elastio/bon
v3.9.0
v3.8.2
v3.8.1
v3.8.0
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
v3.7.1
v3.7.0
Added
- Add support for
#[builder(derive(IntoFuture(Box)))](#322).
This allows callingbuilder.awaitinstead ofbuilder.call().await. Thanks @jakubadamw for the contribution!
Fixed
- Add missing
whereclause forwarding to#[builder(derive(Into))](#325)
Internal
v3.6.5
This is a regular maintenance release with no essential API/behavior changes. Enjoy the stability 😄.
Docs
- Add all 3 variations of builder syntax to the Basics guide pages (#315)
Internal
- Update the dependency
darling(crate for parsing the attributes) from0.20to0.21and other internal dependencies (#317, #320, #304) - Switch from
iaitoiai-callgrindfor high-precision benchmarking ofbon(#311).iai-callgrindis a better maintained alternative toiai, but in any case, both deserve a huge thanks for providing the benchmarking capabilities forbon! - Migrate to OIDC for trusted publishing. Huge thanks for this new crates.io feature to everyone who made it happen! (#318)
- Fix
clippy::or_fun_calllint from the nightly toolchain (#316)