pub fn verify_artifact(
artifact: &Path,
checksum_path: Option<&Path>,
) -> Result<()>Expand description
Verify an artifact: check checksum, archive layout, and manifest fields. checksum_path
may be None in which case we look for a sibling .tar.gz.sha256 file.