[revert 6193] Remove Compilation.libraries#6517
[revert 6193] Remove Compilation.libraries#6517gnzlbg wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
|
I'm not sure if this is stated anywhere formal, but Cargo doesn't have a public API so depending on its programmatic API is at your own risk and without deprecation warnings. The CLI is what's stable. I think the output of I don't think we should revert the removal. |
I see! I'll explore whether it is possible to migrate For the people of the future, I've published a fork of |
FWIW I explored using So it appears that we are going to have to maintain our own fork of cargo for the forseable future. |
The JSON output from |
This PR reverts #6193 .
It appears that the only reason for the removal was that this API was unused, but as pointed out in the original PR, Rust projects are using this API.
No deprecation warning indicating the migration path was issued (there was a non-doc comment indicating that the API was deprecated, but that's it, no
deprecation()attribute was used at all).#6193 cites #5651 for the removal, but this comment there also states that there are projects using this API and therefore "I'm not sure if we should just leave it, remove it, or replace it with something better". No replacement is discussed anywhere in those PRs and AFAICT no such replacement is available.
Please, do a cargo release after this PR is merged.
cc @dwijnand