A checklist for ongoing Rust project maintenance tasks. Think of it as regular checkups for your project, like a car inspection π or spring-cleaning β¨. I also wrote an article on the topic.
Pro tip: Create a copy of this list for every check interval (e.g. every 6 months) for documentation.
rustup update
.README.md
is still up-to-date.cargo mutants
, which injects bugs into your code to see if your tests catch them!cargo update
to update dependencies to the latest version of your Cargo.lock
.cargo upgrade
on a new branch, to see if you can safely upgrade to the latest versions of your dependency.cargo audit
to find security issues in crates.cargo udeps
to find unused dependencies.cargo clippy
for new lints.cargo modules orphans
to find unused modules in your treecargo hack
.
You can run it with cargo hack check --each-feature --no-dev-deps
. This will iterate over all features of your project and checks that the project compiles. It also checks your default features and --no-default-features
of the package.