pub fn plan_removal(name: &str) -> Result<RemovalPlan>Expand description
Build a removal plan for the named package.
The function loads the package record, gathers current dependents, and then returns a single immutable plan that can be inspected by the caller before removal starts. If the package does not exist, the database error is preserved so the CLI can report that the target package was not found.