Cargo Features

[dependencies]
multihash-codetable = { version = "0.1.2", default-features = false, features = ["std", "sha1", "sha2", "sha3", "ripemd", "strobe", "blake2b", "blake2s", "blake3", "serde"] }
default = std

The std feature is set by default whenever multihash-codetable is added without default-features = false somewhere in the dependency tree.

std default

Enables std of optional blake2b_simd, optional blake2s_simd, optional blake3, core2, optional digest, multihash-derive, optional ripemd, optional sha1, optional sha2, optional sha3, and optional strobe-rs

blake3:

This crate uses libstd for std::io trait implementations, and also for runtime CPU feature detection. This feature is enabled by default. If you use --no-default-features, the only way to use the SIMD implementations in this
crate is to enable the corresponding instruction sets statically for the entire build, with e.g. RUSTFLAGS="-C target-cpu=native".

sha1

Enables digest and sha1

Affects hasher_impl::sha1

sha2

Enables digest and sha2

Affects hasher_impl::sha2

sha3

Enables digest and sha3

Affects hasher_impl::sha3

ripemd

Enables digest and ripemd

Affects hasher_impl::ripemd

strobe

Enables strobe-rs

Affects hasher_impl::strobe

blake2b

Enables blake2b_simd

Affects hasher_impl::blake2b

blake2s

Enables blake2s_simd

Affects hasher_impl::blake2s

blake3

Enables blake3

Affects hasher_impl::blake3

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework