Display artifact dependency information in cargo tree
#14804
Labels
Command-tree
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Z-bindeps
Nightly: binary artifact dependencies
Some questions I asked in #10593 (comment):
(artifact deps)
suffix?target
platform an artifact dependency will be built on?{ …, lib = true }
?And some replies from @bstrie
There are multiple possible values for the
artifact
field, so I wouldn't mind having a(bin)
or(staticlib)
or(cdylib)
suffix.No, I think that's a detail that can be easily answered by checking Cargo.toml. But if you did decide to display this information, I would include it as part of the above annotation, e.g.
(wasm32-wasi bin)
or(x86_64-unknown-linux-musl staticlib)
.I think it should show up multiple times in the tree graph. The lib node should show up as an entirely normal dependency, whereas the artifact node should be annotated as mentioned above.
Propose solution
Since this is an unstable, we can ship an initial version and iterate on it then.
Version
d8cb5fb
The text was updated successfully, but these errors were encountered: