fn download_url(
url: &str,
hash: Option<&str>,
dest_dir: &Path,
) -> Result<PathBuf>Expand description
Download an archive from url into dest_dir and return the path of the archive.
If hash is provided (hex-encoded SHA-256, optionally prefixed by sha256:), the download is
verified against it. The archive itself is extracted by the builder (CMake ExternalProject).