bnjbvr / cargo-machete

Remove unused Rust dependencies with this one weird trick!
MIT License
784 stars 28 forks source link

iban_validate crate is a false positive #78

Open cemoktra opened 1 year ago

cemoktra commented 1 year ago

Have a project depend on https://crates.io/crates/iban_validate and actually use it. Machete will detect it as unused

bnjbvr commented 1 year ago

Does it work with --with-metadata? This crate exposes a different name internally: https://github.com/ThomasdenH/iban_validate/blob/master/iban_validate/Cargo.toml#L19

cemoktra commented 1 year ago

It runs very long and then errors out with "Dependency not found"

bnjbvr commented 1 year ago

Do you mean that analyzing the project causes an error, or that cargo-machete doesn't mark the dependency as unused? If the former, can you provide a minimal repro/test case please?

cemoktra commented 1 year ago

It causes an error