bon icon indicating copy to clipboard operation
bon copied to clipboard

Next-gen compile-time-checked builder generator, named function's arguments, and more!

Results 48 bon issues
Sort by recently updated
recently updated
newest added

Hey there, Bon is great but it still feels weird to write `.property(true)` for booleans and I feel that an option to shorten this usage would be a nice addition....

feature request

This new attribute can be placed on individual members or at the top level via `#[builder(on(_, overwritable)]`. It disables the compile-time check for overwriting already set members. For example with...

feature request

Closes #21 For anyone who wants to try out the changes here, you can do so using the following line in `Cargo.toml`: ```toml [dependencies] bon = { git = "https://github.com/elastio/bon",...

## Read this if you found this issue because you want to have builder syntax for methods in traits The design for this feature is rather hard and is yet...

design needed
feature request

Today we have an ability to configure some of the members as positional arguments to the starting function that creates the builder or to the finishing function that consumes the...

design needed
feature request

⚠️ There is no particular plan for a new major release right now! This issue exists just to record some thoughts on the things that we may potentially break in...

design needed

This is based on feature requests #24 and #69. Once we have a feature-complete builder derive we may add a feature to derive the getter/setter methods directly on the structs/enums....

design needed
feature request

This is based on the issue https://github.com/elastio/bon/issues/24 Once we have a feature-complete builder derive feature we may add a feature to derive the method `new()` with positional parameters for the...

design needed
feature request

In some cases, developers would like to share the `#[builder(...)]` configuration across all their methods in the impl block, or even across all impl blocks. Today, the users of `bon`...

feature request

This is based on a comment from @cksac in https://github.com/elastio/bon/issues/85#issuecomment-2343780384 It should look something like this. An additional config should enable the generation of a separate syntax for the builder...

design needed
feature request