Skip to content

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
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.

@weihanglo
Copy link
Member

@rustbot author

@elchukc are you still pursuing this?

@rustbot rustbot added S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 3, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 3, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Command-tree S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. 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