Skip to main content

fetch_verified

Function fetch_verified 

Source
pub fn fetch_verified(
    url: &str,
    expected_sha256: &str,
    opts: &FetchOpts,
    executable: bool,
) -> Result<PathBuf>
Expand description

Fetch url, verify against expected_sha256, and return the cached file path.

When executable is true, sets the executable bit on Unix (for remote scripts).