TimonPost / cargo-unused-features

Find potential unused enabled feature flags and prune them.
MIT License
214 stars 9 forks source link

`cargo-unsued-features` is not a cargo subcommand #15

Open simonsan opened 10 months ago

simonsan commented 10 months ago

Describe the bug cargo-unsued-features is not a cargo subcommand, although it's called like that. This is confusing.

I rewrote rhack to become cargo-rhack, and the trick is to pass in cargo via clap as the first arg and hide it, as can be seen here: https://github.com/nakabonne/rhack/pull/11/files#diff-ce6e52385823f89d6bf1ea627c887cfd2a80b6fb8fc97932e5e3a9372d4ad7bbR27

TimonPost commented 10 months ago

Thanks! #13 also covers this issue but I have so far not found a solution. I can have a look at your diff@!