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

CARGO: improve fetching actual stdlib data #6890

Merged
merged 7 commits into from Apr 5, 2021

Conversation

Undin
Copy link
Member

@Undin Undin commented Feb 24, 2021

These changes:

  • introduce PackageOrigin.STDLIB_DEPENDENCY to distinguish workspace and stdlib dependencies
  • render stdlib dependencies as a part of stdlib and don't create separate nodes for them in External Libraries
Before After
  • add tests for project view tree
  • enable org.rust.cargo.fetch.actual.stdlib.metadata experimental feature for nightly builds

Part of #6104

changelog: Don't show separate nodes for stdlib dependencies when org.rust.cargo.fetch.actual.stdlib.metadata experimental feature is enabled

@Undin Undin added the fix Pull requests that fix some bug(s) label Feb 24, 2021
@Undin Undin force-pushed the undin/stdlib-dependency-origin branch 2 times, most recently from bf56e44 to 6c9019f Compare March 3, 2021 15:56
Copy link
Member

@vlad20012 vlad20012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
The tests appear to have fallen with Rust 1.32.0. Let's finally bump the minimal supported version to 1.42.0.

@Undin Undin force-pushed the undin/stdlib-dependency-origin branch 3 times, most recently from 6cd3d48 to 965d53e Compare March 24, 2021 17:22
@Undin Undin force-pushed the undin/stdlib-dependency-origin branch 2 times, most recently from bb51918 to 00870dd Compare April 5, 2021 08:57
Such tests should ensure that we provide proper dependencies by `RsAdditionalLibraryRootsProvider`
As a result, dependencies tree shows stdlib dependencies as part of stdlib node instead of project dependencies
…efault

It significantly slows down tests without actual necessity. Enable this feature only in some tests that actually use/check it
@Undin Undin force-pushed the undin/stdlib-dependency-origin branch from 00870dd to b3db46f Compare April 5, 2021 14:18
@Undin
Copy link
Member Author

Undin commented Apr 5, 2021

bors r=vlad20012

bors bot added a commit that referenced this pull request Apr 5, 2021
6890: CARGO: improve fetching actual stdlib data r=vlad20012 a=Undin

These changes:
- introduce `PackageOrigin.STDLIB_DEPENDENCY` to distinguish workspace and stdlib dependencies
- render stdlib dependencies as a part of stdlib and don't create separate nodes for them in `External Libraries`

| Before | After |
|-|-|
| ![](https://user-images.githubusercontent.com/2539310/109862929-15df3e00-7c72-11eb-9d22-0daa6d4302a8.png) | ![](https://user-images.githubusercontent.com/2539310/109862953-1e377900-7c72-11eb-9846-33930c4e63bc.png) |


- add tests for project view tree
- enable `org.rust.cargo.fetch.actual.stdlib.metadata` experimental feature for nightly builds

Part of #6104

changelog: Don't show separate nodes for stdlib dependencies when `org.rust.cargo.fetch.actual.stdlib.metadata` experimental feature is enabled


Co-authored-by: Arseniy Pendryak <a.pendryak@yandex.ru>
@bors
Copy link
Contributor

bors bot commented Apr 5, 2021

Build failed:

@vlad20012
Copy link
Member

bors retry

@bors
Copy link
Contributor

bors bot commented Apr 5, 2021

Build succeeded:

@bors bors bot merged commit 17fede3 into master Apr 5, 2021
@bors bors bot deleted the undin/stdlib-dependency-origin branch April 5, 2021 21:35
@github-actions github-actions bot added this to the v145 milestone Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull requests that fix some bug(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants