Check which packages are actually used in script?

We have a fairly bloated Project.toml that I’m trying to trim down. Is there any way to, e.g., run tests and track which packages were in Project.toml or imported with using but never actually called?

print_explicit_imports from ExplicitImports.jl can report stale imports.

3 Likes