colin-kiegel / rust-derive-builder

derive builder implementation for rust structs
https://colin-kiegel.github.io/rust-derive-builder/
Apache License 2.0
1.32k stars 88 forks source link

public builder private struct #329

Closed michael-jaquier closed 1 month ago

michael-jaquier commented 3 months ago

is it possible to have a private struct but a pub(crate)/pub builder?

TedDriggs commented 3 months ago

I think you'd run into problems when build() was more visible than its return type, but you can try it out easily enough.

TedDriggs commented 1 month ago

Closing this as it's a question, not an issue.