Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Feature request: print features used to build each crate in tree #18

Open
Dushistov opened this issue Jul 25, 2017 · 3 comments
Open

Feature request: print features used to build each crate in tree #18

Dushistov opened this issue Jul 25, 2017 · 3 comments

Comments

@Dushistov
Copy link

Thanks for this tool,

to debug issue like desribed at rust-lang/cargo#4323 it would be nice
to show in cargo tree output the features used for building each crate
(it can be done by parsing cargo check -v output),

for example if cargo tree has such feature, then SO question can be solved just compare cargo tree outputs,
in one case it may print something like:

nom v3.1.0 ["std", "memchr", "stream"]

in other case

nom v3.1.0 ["std", "memchr", "stream", "verbose-errors"]
@sfackler
Copy link
Owner

That seems like a reasonable thing to do!

@psinghal20
Copy link

Hi! I wanted to know if someone is working over this feature request? If not, maybe I can contribute to this issue. Any tips to proceed would be helpful!

@brson
Copy link

brson commented Feb 6, 2019

In addition to knowing which features are on, I think it would be useful to know which features are off too. Let me see the entire "feature-space".

e.g. for @psinghal20's work on tikv/tikv#4167, they are trying to adjust features to remove bloat, and there are often 'negative' features that could disable code, that one might not know about.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants