elastio/bon
Next-gen compile-time-checked builder generator, named function's arguments, and more! observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 99
- Longevity 56
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5.0
- age_days: 794
- days_rel: 9
- days_push: 9
- n_releases_24m: 35
Adoption not part of the score
2120 stars · 43 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
bon is a Rust crate that generates compile-time-checked builders for structs and functions via derive macros and the #[builder] attribute. It also provides idiomatic named and optional parameters for functions and methods, with no_std support.
Use cases
- generate builders for rust structs
- named function arguments in rust
- avoid positional parameter mistakes in rust apis
- partial application with optional parameters
- builder pattern without boilerplate
- no_std builder generation
When to choose
- you want compile-time-checked builders with zero boilerplate
- you need named or optional parameters for functions and methods
- you need no_std compatibility
- you want good IDE experience with macro-generated signatures
When to avoid
- you prefer plain struct update syntax or manual constructors
- your project avoids proc macros or has an old rustc below the MSRV
- you need runtime-configurable builders rather than compile-time generation
Facets
library · maturity stable
developer-tools developer-tools programming-languages rust cross-platform builder-pattern derive-macro named-arguments compile-time-checked no-std setters code-generation
4 sources
- readme: https://github.com/elastio/bon · fetched 2026-08-28 · 3a21c9e4c40c
- homepage: https://bon-rs.com · fetched 2026-08-29 · 56cae5175c2a
- registry_crates: https://crates.io/api/v1/crates/bon · fetched 2026-08-29 · caebdc30b387
- site_page: https://bon-rs.com/changelog · fetched 2026-08-29 · ab2e9aee6128
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| elastio/bon | main | 90 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem