I updated the dependency of sha2 from 0.7 to 0.8 and the code does not compile anymore.
I fiddled with the sha2 errors and fixed them. Then I upgraded sha3 from 0.7 to 0.8 as well and I seem to be unable to get it right.
Checking libindy v1.9.0 (/home/ignisvulpis/development/hyperledger/indy-sdk/libindy) error[E0284]: type annotations required: cannot resolve `<_ as sha2::Digest>::OutputSize == _` --> src/services/pool/state_proof/node.rs:150:9 | 150 | sha3::Digest::digest(encoded.to_vec().as_slice()) as NodeHash | ^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0284`. error: Could not compile `libindy`. To learn more, run the command again with --verbose. ignisvulpis@namenlos:~/development/hyperledger/indy-sdk/libindy$
The offending code is here: https://github.com/AxelNennker/indy-sdk/blob/sha2_0.8/libindy/src/services/pool/state_proof/node.rs#L150
Why is the error message about sha2 at all. Everything here should be sha3 anyway.