multiformats / rust-multihash

multihash implementation in Rust
https://github.com/multiformats/multihash
Other
150 stars 60 forks source link

fix(codetable): automatically include digest dep when needed #360

Closed bishopcheckmate closed 8 months ago

bishopcheckmate commented 8 months ago

Previously it was needed to manually enable the optional digest dependency when using any of sha1,2,3, or ripemd features, and it could only be found out via reading the sources or codetable failed to build.

Also included some additional feature guards to clean up warnings or errors that ocured when building without all features.