pub fn detect_all_adapters(project_path: &Path) -> Vec<Box<dyn PackageManager>>Expand description
Every package manager that claims this directory, whatever the user has switched off.
detect_adapters answers “what would a prune pass touch here”, which is the right
question everywhere a prune pass is involved and the wrong one for devp caches: an
opt-in adapter that is off, or one named in disabled_adapters, still means the
project uses that manager and still means its download cache is what puts the project
back. Counting with the filtered detector would report a cargo cache as used by no
repository on a machine full of Rust, because enable_cargo happens to be off — and
that is the one answer that would get a cache cleared.