Registry / utility / builder-pattern

builder-pattern

JSON →
library0.4.2rscratesunverified

A derivable macro for declaring a builder pattern, simplifying struct construction with optional fields.

utility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use builder_pattern::Builder;

Derives a builder for a struct and constructs an instance with chained methods.

use builder_pattern::Builder; #[derive(Builder)] struct Config { name: String, #[default = 42] value: i32, } let config = Config::new().name("test".into()).build().unwrap();
Debug
Known footguns
gotchaThe macro requires all fields to have defaults or be explicitly set; missing fields cause a runtime panic.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources