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

Support --bin #12

Closed
anna-is-cute opened this issue Jan 21, 2018 · 1 comment
Closed

Support --bin #12

anna-is-cute opened this issue Jan 21, 2018 · 1 comment

Comments

@anna-is-cute
Copy link

If, for example, you have a Cargo.toml like this:

[features]
default = []
source = ["syn", "quote"]

[[bin]]
name = "main_bin"

[[bin]]
name = "another_bin"
required-features = ["source"]

If you only want to see the output for main_bin, there's no way to do this. In addition, you must specify --features source for cargo bloat to even start.

% cargo bloat --release --crates -n 0
error: target `another_bin` requires the features: `source`
Consider enabling them by passing e.g. `--features="source"`
@RazrFalcon
Copy link
Owner

Will fix it.

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

No branches or pull requests

2 participants