pub fn pin_github_asset(asset: &GitHubAsset) -> Result<Pinned, PinError>Expand description
An asset’s size and sha256, whatever it takes to know them.
GitHub has computed a digest for every asset uploaded since 2024, and for those this is a field read. For an older one the asset is downloaded here and hashed — so anything resolved off a release comes out pinned, and the size is the one that was read rather than the one the listing claims.