miden-vm
miden-vm copied to clipboard
Write tool to format `Cargo.toml`
Often in PR reviews the following things are asked:
- sort deps alphabetically
- use
{ version = "1.0" }
, instead of"1.0"
directly - remove unused deps
These changes can probably be automated, and then added as a cargo make
rule
Removing unused deps is harder than I thought. There seems to be a few tools to do that:
-
cargo deny
- checks licenses
- checks vulnerability DB
-
cargo udeps
- find unused deps, but requires nightly, one build per target
-
cargo machete
- regex magic
This might help: https://github.com/lurk-lab/ci-workflows/blob/main/.github/workflows/unused-deps.yml