Module cargo_update::ops [] [src]

Main functions doing actual work.

Use installed_main_repo_packages() to list the installed packages, then use intersect_packages() to confirm which ones should be updated, acquire the crates.io auth token via crates_token(), use it to poll the packages' latest versions by calling MainRepoPackage::pull_version on them, continue with doing whatever you wish.

Structs

MainRepoPackage

A representation of a package from the main crates.io repository.

Functions

crate_versions

Parse the raw crate version list into a collection of Semvers.

crate_versions_raw

Download the list of versions of the specified package from the main crates.io registry using the specified auth token.

crates_token

Load the crates.io authorisation token for API requests.

installed_main_repo_packages

List the installed packages at the specified location that originate from the main crates.io registry.

intersect_packages

Filter out the installed packages not specified to be updated.