Cargo Features

[dependencies]
digest = { version = "0.11.0-pre.9", default-features = false, features = ["core-api", "mac", "rand_core", "std", "alloc", "oid", "zeroize", "dev"] }
default = core-api

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

core-api default = block-buffer

Enable Core API traits

Affects digest::core_api

mac = subtle

Enable MAC traits

rand_core

Enable random key generation methods

Enables rand_core of crypto-common

std = alloc

Enables std of crypto-common

alloc std?

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, digest::VariableOutput.finalize_boxed, digest::VariableOutputReset.finalize_boxed_reset

oid = const-oid
zeroize

Enables zeroize and zeroize of optional block-buffer

optional dependencies

dev = blobby

Affects digest::dev

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.

block-buffer core-api
subtle mac?
blobby dev?
const-oid oid?

Affects digest::DynDigestWithOid