Cargo Features
[dependencies]
digest = { version = "0.11.0-rc.5", default-features = false, features = ["block-api", "mac", "rand_core", "alloc", "getrandom", "oid", "zeroize", "dev"] }
- default = block-api
-
The
block-apifeature is set by default wheneverdigestis added withoutsomewhere in the dependency tree.default-features = false - block-api default = block-buffer
-
Enable block API traits
Affects
digest::block_api… - mac = subtle
-
Enable MAC traits
- rand_core getrandom?
-
Enable random key generation methods
Enables rand_core of crypto-common
- 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… - getrandom = rand_core
-
Enables getrandom of crypto-common
- 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.