Veetaha 😳's Avatar

Veetaha 😳

@veetaha.bsky.social

Maintainer of the Rust crate for generating builders `bon` https://github.com/elastio/bon Rust's place is in your blood. Khem 😳... I mean in your prod 🐱

11 Followers  |  3 Following  |  8 Posts  |  Joined: 12.11.2024  |  1.642

Latest posts by veetaha.bsky.social on Bluesky

GH merge queues suck a lot. They miss features that bors provides, and I don't think github's merge queues really have the competitive advantage. Alas, bors is no longer maintained and I'd recommend you to take a look at maintained alternatives such as the mergify bot.

07.02.2025 04:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

... Bors-ng no longer receives updates, and what I did in my fork was that I just fixed its heroku integration. At that time heroku removed support for the old Postgres version bors was using, so I had to upgrade bors to the version where it used a newer Postgres version to make it work...

07.02.2025 04:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Hi! Sorry, didn't check bsky for some time.
I'm using bors rather because I've been using it historically, and it's not easy to replace it at this point. I'm hosting it on heroku, and it's maintenance almost has never been a problem except for occasional rare hiccups fixed by restarts. But...

07.02.2025 04:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Alternatives | Bon Next-gen compile-time-checked builder generator, named function's arguments, and more!

Other than that, there are other features such as function/method-based builders and improvements that `bon` has implemented according to the lessons learned from derive_builder and other builder crates. You can see a comparison table here: bon-rs.com/guide/altern...

04.12.2024 13:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Hi! The main downside of derive_builder for me is that the `build()` method of its builders always returns a `Result`. That result can be `Err` if you forgot to set the value of one of the required fields. Bon uses the typestate pattern to validate for this at compile time and get rid of the Result

04.12.2024 13:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Finally, the real bible πŸ₯°

02.12.2024 03:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Added support for getters on the builder generated by bon in 3.2 πŸš€.

See the "Getters" guide page for blazingly fast details ⚑️https://bon-rs.com/guide/typestate-api/getters

This feature is experimental yet and requires your feedback! πŸ“’

#rustlang

Thanks @lazkindness for contributing!

01.12.2024 23:15 β€” πŸ‘ 6    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Post image

Added support for custom private fields on the builder generated by bon in 3.1 πŸš€. This provides a custom state that may be used in custom setters πŸ’Ύ. Nice for mutable collections.

See the "Custom Fields" guide page for blazingly fast details ⚑️: bon-rs.com/guide/typest...

#rustlang

25.11.2024 12:38 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@veetaha is following 3 prominent accounts