Skip to content
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

Update hashing crates to 0.10 #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

russellbanks
Copy link

@russellbanks russellbanks commented Dec 13, 2023

This pull request updates the hashing crates to 0.10. I would have done this as separate pull requests for each one but as we use the same Digest import from the MD5 crate, they all need to depend on the same major Digest version.

This uses Hasher::digest which internally calls does the new, update and finalize. to_vec is also used rather than cloning the items of an iterator.

This replaces the deprecated sha-1 with the sha1 crate instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant