Cargo Features

[dependencies]
hashlib = { version = "0.1.0", default-features = false, features = ["support-all", "support-md5", "support-sha1", "support-sha2", "support-keccak", "support-blake2b"] }
default = support-all

The support-all feature is set by default whenever hashlib is added without default-features = false somewhere in the dependency tree.

support-all default = support-blake2b, support-keccak, support-md5, support-sha1, support-sha2
support-md5 support-all = md5

Affects hashlib::md5

support-sha1 support-all = sha1

Affects hashlib::sha1

support-sha2 support-all = sha2

Affects hashlib::sha2

support-keccak support-all = keccak

Affects hashlib::keccak

support-blake2b support-all = blake2b

Affects hashlib::blake2b

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.

md5 support-md5?

Enables md5 ~0.6

sha1 support-sha1?

Enables sha1 ~0.6

sha2 support-sha2?

Enables sha2 ~0.8

keccak support-keccak?

Enables tiny-keccak ~1.4

blake2b support-blake2b?

Enables blake2b_simd ~0.4