Skip to main content

add_dependency

Function add_dependency 

Source
pub async fn add_dependency(
    project_dir: &Path,
    id: &ItemId,
    dep: &ItemId,
) -> Result<DependencyOutcome>
Expand description

Add dependency dep to the PBI id and return DependencyOutcome.

The operation is idempotent: an existing dependency is not duplicated. Record cycles, including self-dependencies, and set cycle_warning to true. Return Error::NotInitialized for an uninitialized board or Error::NotFound when either ID is absent.