Skip to content
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

--with-metadata does not correctly analyze build scripts #127

Open
mqudsi opened this issue Jun 8, 2024 · 1 comment
Open

--with-metadata does not correctly analyze build scripts #127

mqudsi opened this issue Jun 8, 2024 · 1 comment

Comments

@mqudsi
Copy link

mqudsi commented Jun 8, 2024

I understand this is somewhat of a known issue, but I was a bit surprised that cargo-machete prompted to use --with-metadata for "more accuracy" but when I did that it ended up incorrectly flagging build dependencies (that don't also appear as normal dependencies in Cargo.toml) as unused.

I'm not sure what's considered verboten or in- vs out-of-scope for machete, but there are quite a few approaches that could be used specifically for the case of build dependencies, and you normally have their exact path (either build.rs or the build field from Cargo.toml).

Just some food for thought. Thanks for making this tool :)

@juntyr
Copy link

juntyr commented Jun 15, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants