Cargo Features

[dependencies]
digest = { version = "0.11.2", default-features = false, features = ["alloc", "block-api", "dev", "getrandom", "mac", "rand_core", "oid", "zeroize"] }
default = block-api

The block-api feature is set by default whenever digest is added without default-features = false somewhere in the dependency tree.

alloc

Affects digest::DynDigest.finalize_reset, digest::DynDigest.finalize, digest::DynDigest.box_clone, digest::XofReader.read_boxed, digest::ExtendableOutput.finalize_boxed, digest::ExtendableOutputReset.finalize_boxed_reset

block-api default

Enable block API traits

Enables block-buffer

optional dependencies

Affects digest::block_api

dev = blobby

Affects digest::dev

getrandom = rand_core

Enables getrandom of crypto-common

mac

Enable MAC traits

Enables ctutils

rand_core getrandom?

Enable random key generation methods

Enables rand_core of crypto-common

oid

Enables const-oid

Affects digest::DynDigestWithOid

zeroize

Enables zeroize, zeroize of optional block-buffer

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.

blobby dev?