Cargo Features

[dependencies]
sp-multihash = { version = "0.3.0", default-features = false, features = ["std", "multihash-impl", "derive", "arb", "secure-hashes", "scale-codec", "serde-codec", "blake2b", "blake2s", "identity", "sha1", "sha2", "sha3", "strobe"] }
default = derive, multihash-impl, secure-hashes

These default features are set whenever sp-multihash is added without default-features = false somewhere in the dependency tree.

std

Enables std of sp-multihash-derive and unsigned-varint ^0.7.0

Affects hasher::Digest.from_reader

multihash-impl default = derive
derive default multihash-impl = sp-multihash-derive
arb = quickcheck, rand
secure-hashes default = blake2b, blake2s, blake3, sha2, sha3
scale-codec = parity-scale-codec
serde-codec = serde, serde-big-array
blake2b secure-hashes = blake2b_simd

Affects hasher_impl::blake2b

blake2s secure-hashes = blake2s_simd

Affects hasher_impl::blake2s

identity
sha1 = digest, sha-1

Affects hasher_impl::sha1

sha2 secure-hashes = digest, sha-2

Affects hasher_impl::sha2

sha3 secure-hashes = digest, sha-3

Affects hasher_impl::sha3

strobe = strobe-rs

Affects hasher_impl::strobe

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

parity-scale-codec scale-codec?

Enables parity-scale-codec ^2.1.1

quickcheck arb?

Enables quickcheck ^0.9.2

rand arb?

Enables rand ^0.7.3

serde serde-codec?
serde-big-array serde-codec?

Enables serde-big-array ^0.3.2

sp-multihash-derive derive std?
blake2b_simd blake2b?

Enables blake2b_simd ^0.5.10

blake2s_simd blake2s?

Enables blake2s_simd ^0.5.10

blake3 secure-hashes

Enables blake3 ^0.3.7

Affects hasher_impl::blake3

digest sha1? sha2? sha3?

Enables digest ^0.9.0

sha-1 sha1?

Enables sha-1 ^0.9.1

sha-2 sha2?

Enables sha2 ^0.9.0

sha-3 sha3?

Enables sha3 ^0.9.0

strobe-rs strobe?

Enables strobe-rs ^0.6.2