-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebased and squashed from #116. Closes #114. BREAKING CHANGE: This change replaces uses of typenum with const generics. Importantly, the MultihashDigest, Hasher, and StatefulHasher traits are now generic over the digest size due to compiler limitations. However, `Hasher` exposes this size as an associated const, so `MyHasherImpl::SIZE` can often be used to fill in the size parameter with some help from type inference. Additionally: - All usages of typenum must be replaced with usize constants. - The new MSRV is 1.51.0 due to const generics. - IdentityDigest is now a tuple struct of usize and the digest instead of u8 and a generic array.
- Loading branch information
Showing
13 changed files
with
319 additions
and
397 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.