Skip to main content

verify_release

Function verify_release 

Source
pub fn verify_release(
    variant: &SpeakingVariant,
    model: &HubBlob,
) -> Result<(), String>
Expand description

Refuse a listing whose model file disagrees with the compiled variant.

The digest the install checks a download against comes from this same listing, so without this the compile-time pin would be display only: a replaced upstream file would install under a new revision while the page still drew the old one.