Skip to main content

resolve_enabled

Function resolve_enabled 

Source
pub fn resolve_enabled(
    package: &str,
    kind: ResourceKind,
    overrides: Option<&ProjectPluginOverrides>,
    runtime: Option<&RuntimeConfig>,
) -> bool
Expand description

Resolve the enabled flag for (package, kind) under the layered precedence: project-force > runtime-disable > default(true).

Pure, single-purpose helper used by PackageManager::resolve_with_config and the Doctor summary views. Pulled out so it’s testable without touching the filesystem.