Skip to main content

Module pin

Module pin 

Source
Expand description

Pinning a file nobody published a hash for.

Most providers say what a file’s hash is. For a plain URL there is nobody to ask, so the file is downloaded once, at build time, and hashed. The manifest then carries that hash, and every install is held to the bytes that were seen here — which is the whole of what the old install-time discovery could not offer.

Structs§

Pinned
What a download turned out to be.

Enums§

PinError

Functions§

pin_url
Download url and report its size and sha256.
sha256_hex
The sha256 of bytes, lower-case hex.