Skip to main content

built_package_set

Function built_package_set 

Source
pub fn built_package_set(
    project_dir: &Path,
    host_triple: &str,
) -> Result<BTreeSet<(String, Version)>, String>
Expand description

The (name, version) set actually compiled for the host’s default build of the project at project_dir, per cargo tree (normal + build edges, default features). Err (cargo missing, not a project, stale lock, …) tells the caller to skip annotation rather than fail the scan.