Skip to main content

check_crate

Function check_crate 

Source
pub fn check_crate(
    ledger_path: &Path,
    repo_path: &Path,
    crate_seq_version: &str,
    snapshot_store: Option<PathBuf>,
) -> Result<CheckReport, Error>
Expand description

Diffs the ledger at ledger_path against the live crates.io registry.

Queries crates.io and git; does not modify any state. snapshot_store overrides the default .crate-seq-snapshots/ directory used when checking for orphaned snapshot entries.

ยงErrors

Returns Error::Ledger if the ledger cannot be loaded, Error::Registry on crates.io HTTP failure, or Error::Git on git discovery failure.