TimonPost / cargo-unused-features

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

Rename binary back to be prefixed with "cargo" #13

Open matthiasbeyer opened 1 year ago

matthiasbeyer commented 1 year ago

It is highly confusing that the project is named "cargo-unused-features" but the binary is called "unused-features".

Thus rename the binary to "cargo-unused-features".

TimonPost commented 1 year ago

Had some issues with this while initially creating this tool: https://github.com/clap-rs/clap/discussions/3941

TimonPost commented 1 year ago

Should still follow up with the latest suggestions in this discussion and see if that fixes it.

TimonPost commented 1 year ago
  1. Build the binary
  2. Move the binary over to the /.cargo folder

Try run the command:

image

This doesnt work for me

matthiasbeyer commented 1 year ago
  1. Move the binary over to the /.cargo folder

This doesnt work for me

Did you move it to the ~/.cargo folder or to the ~/.cargo/bin folder?

TimonPost commented 1 year ago

cargo/bin :)

TimonPost commented 1 year ago

If we can make it work such that I can run this tool with:

cargo unused-features analyze

That would be great.