Cargo Features

[dependencies]
secret-toolkit-crypto = { version = "0.10.2", default-features = false, features = ["hash", "ecc-secp256k1", "rand", "hkdf"] }
default = ecc-secp256k1, hash, rand

These default features are set whenever secret-toolkit-crypto is added without default-features = false somewhere in the dependency tree.

hash default rand = sha2
ecc-secp256k1 default = secp256k1

Affects secret-toolkit-crypto::secp256k1

rand default = hash, rand_chacha, rand_core
hkdf = sha2

Affects secret-toolkit-crypto::hkdf

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.

rand_core rand
rand_chacha rand
sha2 hash hkdf?
secp256k1 ecc-secp256k1

Enables secp256k1 ^0.27.0