cargo-udeps
cargo-udeps copied to clipboard
option to automatically re-write Cargo.toml
that would be swell :)
That's an interesting suggestion, and I guess https://github.com/matklad/tom would be helpful here too. Note though that cargo-udeps currently has some false positive bugs so removing stuff unconditionally might break the build :). It could turn that into a strength though and attempt to build with the dependencies removed, and if it fails, readd the dependency.
https://github.com/bnjbvr/cargo-machete has option --fix
which can do this.
I wouldn't mind this feature, can I draft a PR or it?