Expand description
§aksr
A Rust derive macro that automatically generates Builder Lite pattern methods for structs.
The struct itself acts as the builder, eliminating the need for a separate builder type. This is especially useful for rapidly evolving application code.
Requirements: Struct must implement Default or have a new() method.
§Examples
See the examples directory:
examples/rect.rs- Named struct with all featuresexamples/color.rs- Tuple struct with all features
Run examples with cargo run --example rect or cargo run --example color.
To see the generated code, use cargo install cargo-expand and run cargo expand --example rect.