Function cargo_update::ops::installed_main_repo_packages
[−]
[src]
pub fn installed_main_repo_packages(cargo_dir: &Path) -> Vec<MainRepoPackage>
List the installed packages at the specified location that originate
from the main crates.io
registry.
If the .crates.toml
file doesn't exist an empty vector is returned.
Examples
let packages = installed_main_repo_packages(&cargo_dir); for package in &packages { println!("{} v{}", package.name, package.version); }