-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate BLAKE3 to BLAKE2 for easier cross-compilation #2279
Conversation
Great. So the newest nightly breaks everything with lockfile v4. Cool cool. |
BLAKE3 had a handy output function that defaulted to 32 bytes, but the BLAKE2 crate by RustCrypto is variable output by default. They define a type alias that outputs a 512-bit hash, but rather have it explicit in the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks
@Mergifyio backport release/2.2 |
✅ Backports have been created
|
Migrate BLAKE3 to BLAKE2 for easier cross-compilation (backport #2279)
Closes #2277
This also modifies the hash in the pathname to be 10 characters long instead of the full (would-be) 128 characters (which we could shorten to 64 characters by just outputting 32 bytes for the hash).
5 bytes should be fine for this usecase. This is the length of a Git short hash.