-
Notifications
You must be signed in to change notification settings - Fork 198
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
cipher+digest: migrate to hybrid array; MSRV 1.65 #1358
Conversation
2c457b6
to
fb64380
Compare
@newpavlov well, there's the next step |
Replaces `generic-array` with `hybrid-array`, which is built on a combination of `typenum` and const generics, providing a degree of interoperability between the two systems. `hybrid-array` is designed to be a largely drop-in replacement, and the number of changes required to switch are relatively minimal aside from some idiosyncrasies.
fb64380
to
f93a1d6
Compare
@@ -195,7 +195,7 @@ impl_counter! { u32 u64 u128 } | |||
/// In case if `N` is less or equal to 1, buffer of arrays has length | |||
/// of zero and tail is equal to `self`. | |||
#[inline] | |||
fn into_chunks<T, N: ArrayLength<T>>(buf: &mut [T]) -> (&mut [GenericArray<T, N>], &mut [T]) { | |||
fn into_chunks<T, N: ArraySize>(buf: &mut [T]) -> (&mut [Array<T, N>], &mut [T]) { |
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.
Maybe we should move this method into hybrid-array
? I think we had a recent discussion about it.
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.
Sure, although perhaps that could be a followup?
Continuation of #1319.
Replaces
generic-array
withhybrid-array
, which is built on a combination oftypenum
and const generics, providing a degree of interoperability between the two systems.hybrid-array
is designed to be a largely drop-in replacement, and the number of changes required to switch are relatively minimal aside from some idiosyncrasies.