Bump digest to v0.11.0-pre.3; MSRV 1.71#523
Conversation
Also bumps crate editions to 2021 where appropriate
digest to v0.11.0-pre; MSRV 1.65digest to v0.11.0-pre.1; MSRV 1.65
0c342cb to
fbd933f
Compare
digest to v0.11.0-pre.1; MSRV 1.65digest to v0.11.0-pre.2; MSRV 1.65
newpavlov
left a comment
There was a problem hiding this comment.
You forgot to update MSRV in a number of crate readmes.
| // SAFETY: Array<u8, U64> and [u8; 64] have | ||
| // exactly the same memory layout | ||
| let p = blocks.as_ptr() as *const [u8; BLOCK_SIZE]; | ||
| unsafe { core::slice::from_raw_parts(p, blocks.len()) } |
There was a problem hiding this comment.
It could be worth to remove unsafe lines like this by adding a conversion method to the ArrayOps trait.
There was a problem hiding this comment.
Let's save that for a followup, but I agree
| //! hasher.update(b"hello world"); | ||
| //! | ||
| //! // acquire hash digest in the form of GenericArray, | ||
| //! // acquire hash digest in the form of Array, |
There was a problem hiding this comment.
| //! // acquire hash digest in the form of Array, | |
| //! // acquire hash in the form of `hybrid_array::Array`, |
| extern crate test; | ||
|
|
||
| use digest::{bench_update, generic_array::typenum::U64}; | ||
| use digest::{array::typenum::U64, bench_update}; |
There was a problem hiding this comment.
| use digest::{array::typenum::U64, bench_update}; | |
| use digest::{typenum::U64, bench_update}; |
| extern crate test; | ||
|
|
||
| use digest::{bench_update, generic_array::typenum::U32}; | ||
| use digest::{array::typenum::U32, bench_update}; |
There was a problem hiding this comment.
| use digest::{array::typenum::U32, bench_update}; | |
| use digest::{typenum::U32, bench_update}; |
| extern crate test; | ||
|
|
||
| use digest::{bench_update, generic_array::typenum::U128}; | ||
| use digest::{array::typenum::U128, bench_update}; |
There was a problem hiding this comment.
| use digest::{array::typenum::U128, bench_update}; | |
| use digest::{typenum::U128, bench_update}; |
| //! hasher.update(b"hello world"); | ||
| //! | ||
| //! // acquire hash digest in the form of GenericArray, | ||
| //! // acquire hash digest in the form of Array, |
There was a problem hiding this comment.
| //! // acquire hash digest in the form of Array, | |
| //! // acquire hash in the form of `hybrid_array::Array<u8, U16>`, |
| use crate::compressor::Compressor; | ||
| use core::fmt; | ||
| use digest::{ | ||
| array::typenum::{Unsigned, U28, U32, U48, U64}, |
There was a problem hiding this comment.
| array::typenum::{Unsigned, U28, U32, U48, U64}, | |
| typenum::{Unsigned, U28, U32, U48, U64}, |
| //! hasher.update(b"my message"); | ||
| //! | ||
| //! // acquire hash digest in the form of GenericArray, | ||
| //! // acquire hash digest in the form of Array, |
There was a problem hiding this comment.
| //! // acquire hash digest in the form of Array, | |
| //! // acquire hash in the form of `hybrid_array::Array<u8, U32>`, |
| //! hasher.update("The quick brown fox jumps over the lazy dog"); | ||
| //! | ||
| //! // acquire hash digest in the form of GenericArray, | ||
| //! // acquire hash digest in the form of Array, |
There was a problem hiding this comment.
| //! // acquire hash digest in the form of Array, | |
| //! // acquire hash in the form of `hybrid_array::Array<u8, U32>`, |
| //! hasher.update(b"hello world"); | ||
| //! | ||
| //! // acquire hash digest in the form of GenericArray, | ||
| //! // acquire hash digest in the form of Array, |
There was a problem hiding this comment.
| //! // acquire hash digest in the form of Array, | |
| //! // acquire hash in the form of `hybrid_array::Array<u8, U32>`, |
digest to v0.11.0-pre.2; MSRV 1.65digest to v0.11.0-pre.3; MSRV 1.71
fbd933f to
6fd20b4
Compare
6fd20b4 to
794bd1e
Compare
newpavlov
left a comment
There was a problem hiding this comment.
I will do a follow-up PR a bit later.
The new MSRV after #523 is 1.71
The new MSRV after #523 is 1.71
Also bumps crate editions to 2021 where appropriate