RustCrypto / hashes

Collection of cryptographic hash functions written in pure Rust
1.88k stars 253 forks source link

Release 0.10.8 Sha256 issue #611

Closed OlekRia closed 3 months ago

OlekRia commented 3 months ago

`use sha2::{Digest, Sha256};

Sha256::new() `

Made as in documentation described. Raises a error: method new() doesn't exist.

It works well on 0.9 version.

P.S. Macbook Pro M2

newpavlov commented 3 months ago

It works without issues (the playground uses sha2 v0.10.8). Also, we test our code examples as part of CI, so the problem is likely with your code or setup.