-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Finer-grained privacy control #482
Comments
cc @carllerche |
So something like C#'s |
Also reminds me of Swift's internal, but C# was probably first. |
Something like |
+1, but I hope we can avoid a mess like in Java:
Also, I wonder if something like "protected" trait methods might be useful. They are visible, across crates, only to implementations of other trait methods of the same/child trait. |
Triage: Fixed by #1422 |
Yup! |
Rust has a reasonable default meaning of
pub
and private items, but for larger projects it would be extremely useful to have finer-grained control -- especially "public to crate, private to world".The text was updated successfully, but these errors were encountered: