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§
- adapter_
binary - The executable that restores for a given adapter.
- all_
adapter_ names - Every adapter name, in registry order, for error messages and pickers.
- 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.
- install_
hint - How to install the manager behind
adapter, if there is a one-line answer. - is_
adapter_ name - Whether
nameis a real adapter name, for validating what the user typed. - 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.
- opt_
in_ adapter_ names - The adapters that need their own
enable_*switch as well as not being disabled. - refuse_
if_ manifest_ stale - The lockfile-freshness proof for managers that have no read-only check of their own.
- 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.