Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restricted visibility support to builders, build methods, setters, and fields #247

Merged
merged 3 commits into from Apr 19, 2022

Commits on Apr 13, 2022

  1. Change FlagVisibility to support explicit visibilities

    * Use Cow<syn::Visibility> to avoid unnecessary cloning
    * Make as_expressed_vis return a Result
    * Add Visibility::explicit
    TedDriggs committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    215128c View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Add #[builder(vis = "...")] support

    Fields, setters, build methods, and builder structs can now be marked
    as public, private, or have a restricted visibility with vis = "...".
    
    Fixes #246
    TedDriggs committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    3c05d7e View commit details
    Browse the repository at this point in the history
  2. Rework visibility conflicts to avoid losing diagnostics

    This defers conflict checking until the end so that every level can
    participate, and errors are consistently generated.
    TedDriggs committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    90e2ed0 View commit details
    Browse the repository at this point in the history