Modules§
Structs§
- Binary
Check Status - Information describing status of a required package manager binary.
- Bloat
Dir - Information about a bloat directory that can be pruned.
- DirSize
Breakdown - A directory’s size split by what deleting it would actually free.
- Drift
Report - Packages sitting in a manager’s environment directory that its lockfile does not record — installs a post-prune restore would not bring back.
- Enforce
Policy - What an adapter is allowed to do while enforcing a lockfile on this pass.
Traits§
- Package
Manager - The core trait that every package manager adapter must implement.
Functions§
- binary_
available - Check whether a package manager binary is present and runnable.
- capture_
command_ with_ timeout - Run a command and hand back what it printed on stdout, bounded by
timeout. - detect_
adapters - Detect which adapters apply to a given project directory.
- dir_
size - Calculate the total size of a directory recursively (in bytes).
- dir_
size_ with_ hardlinks dir_size, but hardlink-aware.- enforce_
two_ tier - The one rule every adapter enforces, given the manager’s two spellings of the check.
- get_
all_ adapters - Returns all registered package manager adapters.
- lock_
sync_ or_ verify - Two-tier lockfile enforcement using default timeout.
- lock_
sync_ or_ verify_ with_ timeout - Two-tier lockfile enforcement with configurable timeout.
- lock_
verify_ or_ generate - Lockfile enforcement for ecosystems whose “sync” command rewrites source manifests.
- resolve_
program - Resolve a program name into something
Command::newcan actually spawn. - run_
command_ with_ timeout - Helper: run a command with a configurable timeout.
- scan_
required_ binaries - Scan only the package manager binaries needed by candidate repos.
- try_
run_ command - Helper: attempt a command but return
true/falseinstead ofErr.