# idanarye/rust-typed-builder

Compile-time type-checked builder derive

Repository: https://github.com/idanarye/rust-typed-builder
Canonical: https://ross.abutalabs.com/products/rust-typed-builder
Homepage: https://crates.io/crates/typed-builder
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-01T12:52:42+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 57, longevity 100
- inputs: {"age_days": 3255, "days_push": 32, "days_rel": 287, "gap_med": 0.0, "n_releases_24m": 37}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1201, forks 60 (observed 2026-08-28T04:03:58.276455+00:00)

## What it is
A Rust proc-macro crate that derives a compile-time type-checked builder pattern for structs. It enforces at compile time that all mandatory fields are set exactly once, while supporting defaults and optional fields.

## Use cases
- generate builders for rust structs
- enforce named constructor arguments at compile time
- make struct fields optional with defaults
- prevent setting a field twice in a builder
- replace verbose constructor boilerplate in rust

## When to choose
- you want compile-time guarantees that all required fields are set before build
- you want setters that reject duplicate field assignment at compile time
- you need optional fields with default values in a builder
- you want a lightweight derive macro rather than a runtime builder

## When to avoid
- you need a builder you can pass around or clone - use derive-builder instead
- you want clean compiler errors; missing/duplicate fields surface as deprecation warnings
- you need runtime flexibility or fancy builder tricks with the generated type

## Facets
- artifact type: library
- maturity: active
- function: boilerplate, type-system, developer-tools
- domain: developer-tools, programming-languages
- platform: rust, cross-platform
- tags: builder-pattern, proc-macro, derive-macro, compile-time-verification, named-arguments

## Member repositories
- idanarye/rust-typed-builder (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.276455+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:20:41.923901+00:00, confidence not recorded.
  - readme: https://github.com/idanarye/rust-typed-builder (fetched 2026-08-28T04:03:58.276455+00:00, sha c7822d3d0ea5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
