Cargo Features

[dependencies]
tiny-multihash = { version = "0.5.0", default-features = false, features = ["std", "all", "multihash-impl", "derive", "scale-codec", "serde-codec", "blake2b", "blake2s", "sha1", "sha2", "sha3", "strobe", "test"] }
default = all, derive, multihash-impl, std

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

std default

Enables std of tiny-multihash-derive and unsigned-varint ^0.5.1

Affects hasher::Digest.from_reader, hasher::WriteHasher, multihash::write_multihash, multihash::read_multihash

all default multihash-impl = blake2b, blake2s, blake3, sha1, sha2, sha3, strobe
multihash-impl default test? = all, derive
derive default multihash-impl = tiny-multihash-derive
scale-codec = parity-scale-codec
serde-codec = serde

Enables serde of generic-array ^0.14.4

blake2b all = blake2b_simd

Affects hasher_impl::blake2b

blake2s all = blake2s_simd

Affects hasher_impl::blake2s

sha1 all = digest, sha-1

Affects hasher_impl::sha1

sha2 all = digest, sha-2

Affects hasher_impl::sha2

sha3 all = digest, sha-3

Affects hasher_impl::sha3

strobe all = strobe-rs

Affects hasher_impl::strobe

test = multihash-impl, quickcheck, rand

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 ^1.3.5

quickcheck test?

Enables quickcheck ^0.9.2

rand test?

Enables rand ^0.7.3

serde serde-codec?
tiny-multihash-derive derive std
blake2b_simd blake2b?

Enables blake2b_simd ^0.5.10

blake2s_simd blake2s?

Enables blake2s_simd ^0.5.10

blake3 all

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.5.4