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

WIP Add bin/cdylib/staticlib suffix for artifact deps #14658

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elchukc
Copy link
Contributor

@elchukc elchukc commented Oct 9, 2024

What does this PR try to resolve?

This is an implementation of cargo tree as defined in #10593 (comment)

Fixes #14804

How should we test and review this PR?

Additional information

r? @weihanglo

@rustbot
Copy link
Collaborator

rustbot commented Oct 9, 2024

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @weihanglo (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added Command-tree S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 9, 2024
@@ -167,6 +167,14 @@ impl Package {
pub fn proc_macro(&self) -> bool {
self.targets().iter().any(|target| target.proc_macro())
}
// TODO fix this. For now, just wanted it to return a plausible value. Must figure out why .kinds() returns a Vec.
/// Gets crate-type in { .., artifact = <crate-type> } of this package
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This returns ArtifactKind of a package's dependencies, not the ArtifactKind of the package itself. This is why (bin/cdylib/staticlib) suffixes currently print on the wrong line.

- expected
+ actual
- foo v0.0.0 ([ROOT]/foo)
-└── bindep v0.0.0 (bin) ([ROOT]/foo/bindep)
+ foo v0.0.0 (bin) ([ROOT]/foo)
+ └── bindep v0.0.0 ([ROOT]/foo/bindep)

@bors
Copy link
Contributor

bors commented Oct 11, 2024

☔ The latest upstream changes (presumably #14593) made this pull request unmergeable. Please resolve the merge conflicts.

@weihanglo weihanglo added the Z-bindeps Nightly: binary artifact dependencies label Nov 9, 2024
@weihanglo weihanglo linked an issue Nov 9, 2024 that may be closed by this pull request
@rustbot
Copy link
Collaborator

rustbot commented Dec 20, 2024

☔ The latest upstream changes (possibly 081d7ba) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-tree S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. Z-bindeps Nightly: binary artifact dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display artifact dependency information in cargo tree
4 participants