-
Notifications
You must be signed in to change notification settings - Fork 607
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
Handle renamed dependencies coming from Cargo #1487
Conversation
Note that this likely shouldn't be merged until rust-lang/cargo#5993 is decided on |
Sorry for being out of the loop, why does the index need to know what a crate chose to rename a dependency to? |
Ah no worries, I thought the same as you! With features, however, it becomes significant because the implicit feature name for the dependency is named after the left-hand-side of what you write in |
So if I have an optional dependency on |
Correct yeah! To do that you'd do |
c0879ae
to
241c36e
Compare
Ok it looks like we'd like to merge rust-lang/cargo#5993, in light of that r? on this PR to get it merged? |
Could you add some tests please, that the correct value is written to the index, like this test? I want to make sure we don't break this :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests please! :)
This commit is intended to be coupled with rust-lang/cargo#5993 where Cargo will start sending the registry more information about locally renamed crates to persist into the index.
241c36e
to
c04208b
Compare
Now with a test! |
Yay tests! Thank you! bors: r+ |
1487: Handle renamed dependencies coming from Cargo r=carols10cents a=alexcrichton This commit is intended to be coupled with rust-lang/cargo#5993 where Cargo will start sending the registry more information about locally renamed crates to persist into the index. Co-authored-by: Alex Crichton <alex@alexcrichton.com>
Build succeeded |
And I've deployed this! |
This commit is intended to be coupled with
rust-lang/cargo#5993 where Cargo will start sending the
registry more information about locally renamed crates to persist into the
index.