Registry / utility / typed-builder

typed-builder

JSON →
library0.23.2rscratesunverified

Compile-time type-checked builder derive macro for Rust structs.

# Cargo.toml [dependencies] typed-builder = "0.23.2"
INSTALL
IMPORT
SIG · TYPED-BUILDER
T
typed-builder
utilityrustv0.23.2
harness data pending
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.

TypedBuilder
use typed_builder::TypedBuilder;

Derives a builder pattern for a struct with compile-time type checking.

use typed_builder::TypedBuilder; #[derive(TypedBuilder)] struct Foo { x: i32, y: String, } fn main() { let foo = Foo::builder().x(42).y("hello".to_string()).build(); println!("{:?}", foo); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.23.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
typed-builder — cargo add typed-builder · libregistry