-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rust compiler versions and private dependencies #1
Comments
I think, You misunderstood my definition of the terms "public" and "private". A dependency is private if the the crate does not reexports a feature (like some API) of the dependency. Private does not mean that the dependency is somehow hidden from or invisible to the user. Therefore, rustc is a private dependency as long as You don't reexport something from the standard library. (You can use the standard library but you cannot make it available to others.) Am I correctly understanding Your issue? By the way: Thank You for actually being the first one going into discussion with me about my paper! |
But the compiler is special. If I have a crate that only privately depends on A similar issue exists for things like Issue references:
|
Oh yes... I think You're right! rustc and native dependencies always need to be public for the reasons You've mentioned. (I think, I actually thought about this when I wrote the text two month ago -- and forgot... Sorry!) I think, I've mentioned the private dependencies because the restrictions I've concluded do not apply in general when a dependency is private (or not somehow special like rustc). Therefore, it makes sense to differentiate between private and public dependencies in order to have more versions that are compatible to each other. |
The document currently states that private dependencies aren't discussed, but a note for the future is that the
rustc
minimum dependency is "never private" and cannot be hidden. The same is also true for any#[link]
library since those must be unique.The text was updated successfully, but these errors were encountered: