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

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

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

Comments

Projects
None yet
4 participants
@Dushistov
Copy link

Dushistov commented Jul 25, 2017

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

This comment has been minimized.

Copy link
Owner

sfackler commented Jul 25, 2017

That seems like a reasonable thing to do!

@psinghal20

This comment has been minimized.

Copy link

psinghal20 commented Feb 3, 2019

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

This comment has been minimized.

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 join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.