# colin-kiegel/rust-derive-builder

derive builder implementation for rust structs

Repository: https://github.com/colin-kiegel/rust-derive-builder
Canonical: https://ross.abutalabs.com/products/rust-derive-builder
Homepage: https://colin-kiegel.github.io/rust-derive-builder/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: builder-pattern, rust, macros, setter-methods
Last push: 2026-01-02T18:45:45+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 60, release rhythm 8, longevity 100
- inputs: {"age_days": 3679, "days_push": 243, "days_rel": 694, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1539, forks 101 (observed 2026-08-28T04:05:00.421449+00:00)

## What it is
A Rust crate providing a derive macro that automatically generates builder-pattern code for structs. It creates fluent setter methods and a build() constructor to simplify struct instantiation.

## Use cases
- generate builder methods for rust structs
- avoid long constructor argument lists in rust
- implement the builder pattern via derive macro
- create structs with optional fields and defaults
- reduce boilerplate when constructing complex structs

## When to choose
- you want automatic builder generation from struct definitions
- you need setter methods with sensible defaults and optional fields
- you prefer a declarative derive macro over hand-written builders

## When to avoid
- your structs are simple and constructors suffice
- you need builders for enums or non-struct types
- you want runtime-configurable builders rather than compile-time generation

## Facets
- artifact type: library
- maturity: active
- function: serialization, developer-tools
- domain: developer-tools, programming-languages
- platform: rust
- tags: builder-pattern, derive-macros, setter-methods, proc-macro

## Member repositories
- colin-kiegel/rust-derive-builder (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.421449+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-30T04:30:53.596382+00:00, confidence not recorded.
  - readme: https://github.com/colin-kiegel/rust-derive-builder (fetched 2026-08-28T04:05:00.421449+00:00, sha e98952057b8b)
  - homepage: https://colin-kiegel.github.io/rust-derive-builder/ (fetched 2026-08-29T11:32:22.889815+00:00, sha 44136fa355b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
