-
Notifications
You must be signed in to change notification settings - Fork 9
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
Running on binary project gives wrong results [fixed] #1
Comments
I found the bug, it has to do with features depending on other features. |
So somehow I will have to consider original features and their dependent features separately. One way to fix it is to not collect all sub-enabled features and just keep it at the root level. Then removing "std" will certainly break the compilation as it will disable all sub-features. But there might be sub-features of "std" that could be enabled individually rather than the whole set of sub-features. So we would lose some granularity/detail. |
If you're running this library on a binary rather than a library, please make sure to supply '--bin' flag. This might actually solve the issue already. Default the project only compilers libraries. |
Flag is made default enabled in https://crates.io/crates/cargo-unused-features/0.1.7 |
From reddit.
Probably not a minimal example, but this fails for me:
The text was updated successfully, but these errors were encountered: