cargo-machete icon indicating copy to clipboard operation
cargo-machete copied to clipboard

iban_validate crate is a false positive

Open cemoktra opened this issue 1 year ago • 4 comments

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

cemoktra avatar Jul 13 '23 06:07 cemoktra

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

bnjbvr avatar Jul 13 '23 07:07 bnjbvr

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

cemoktra avatar Jul 13 '23 08:07 cemoktra

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?

bnjbvr avatar Jul 16 '23 21:07 bnjbvr

It causes an error

cemoktra avatar Jul 17 '23 06:07 cemoktra