Cargo Features

[dependencies]
bitcoin-hpke = { version = "0.13.0", default-features = false, features = ["secp", "alloc", "std"] }
default = alloc, secp

These default features are set whenever bitcoin-hpke is added without default-features = false somewhere in the dependency tree.

secp default

Enables global-context and rand-std of secp256k1 ^0.29

alloc default

Include allocating methods like open() and seal()

Affects single_shot::single_shot_seal, single_shot::single_shot_open

std

Includes an implementation of std::error::Error for HpkeError. Also does what alloc does.

Affects single_shot::single_shot_seal, single_shot::single_shot_open

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.

secp256k1 secp

Enables secp256k1 ^0.29