Cargo Features

[dependencies]
yubihsm = { version = "0.42.1", default-features = false, features = ["http-server", "http", "mockhsm", "passwords", "secp256k1", "setup", "untested", "usb"] }
default = http, passwords, setup

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

http-server = tiny_http
http default

Affects connector::http

mockhsm = ccm, digest, ed25519-dalek, secp256k1

Enables p256, arithmetic of ecdsa

passwords default setup = hmac, pbkdf2, sha2
secp256k1 mockhsm? = k256

Affects ecdsa::secp256k1

setup default = passwords, serde_json

Enables serde of uuid

Affects yubihsm::setup

untested = sha2

Affects pss::MAX_MESSAGE_SIZE

usb = rusb

Affects connector::usb

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.

ccm mockhsm?

Enables ccm

optional dependencies

digest mockhsm?
ed25519-dalek mockhsm?
hmac passwords
k256 secp256k1?
pbkdf2 passwords
serde_json setup
rusb usb?
sha2 passwords untested?
tiny_http http-server?