pub fn asset_sha256(
token: &str,
repo: &Repo,
tag: &str,
name: &str,
) -> Result<String>Expand description
The hex SHA-256 that GitHub stores for asset name in the tag Release.
It comes from the digest of the asset (sha256:<hex>, see
release assets).
Reading the digest from GitHub, instead of hashing a local file, keeps the
checksum matching the stored asset.
A rerun’s build can differ in bytes from the one GitHub kept.
§Errors
Returns an error when the GitHub client cannot be built or the Release
cannot be read.
It also returns one when the Release does not list name or the asset has
no SHA-256 digest.