Skip to main content

Module download

Module download 

Source
Expand description

HTTP (via curl) download of release archives + SHA-256 verification. Downloads the hyperd release archive to a temp file and verifies its SHA-256 digest.

The download itself is performed by a curl subprocess rather than an in-process HTTP client — see the inline comment on crate::download::download_and_verify for the reason.

Functions§

download_and_verify
Downloads url to dest via curl and, if expected_sha256 is supplied, verifies that the downloaded bytes match.