idanarye / rust-typed-builder

Compile-time type-checked builder derive
https://crates.io/crates/typed-builder
Apache License 2.0
904 stars 52 forks source link

Refactor implementations of StructInfo::derive and TypeBuilderAttr #127

Closed itchyny closed 10 months ago

itchyny commented 10 months ago

Thanks for maintaining this great crate. I was to implement a new feature but noticed that it's hard to reuse TypeBuilderAttr. I'd like to suggest move TypeBuilderAttr to a separate file. Also I moved the entire derive implementation to be the public function of StructInfo and make impl functions private, to make its duty clear.