Function cargo_update::ops::installed_git_repo_packages [−][src]
pub fn installed_git_repo_packages(crates_file: &Path) -> Vec<GitRepoPackage>
Expand description
List the installed packages at the specified location that originate from a remote git repository.
If the .crates.toml
file doesn’t exist an empty vector is returned.
This also deduplicates packages and assumes the latest-mentioned version as the most correct.
Examples
let packages = installed_git_repo_packages(&cargo_dir);
for package in &packages {
println!("{} v{}", package.name, package.id);
}