Cargo Features

[dependencies]
kvarn-auth = { version = "0.2.0", default-features = false, features = ["ecdsa", "rsa", "hmac", "structured", "integration-fs"] }
default = ecdsa, structured

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

ecdsa default = chacha20, p256, sha2

Affects kvarn-auth::ecdsa_sk, kvarn-auth::ValidationAlgo

rsa = sha2

Enables rsa

signers / verifiers

Affects kvarn-auth::ValidationAlgo

hmac = chacha20, sha2

Enables hmac

structured default = serde, serde_json
integration-fs = bincode, dashmap, xxhash-rust

Enables serde of compact_str ^0.7, fs of tokio and derive of serde

structured

Affects kvarn-auth::integrations

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.

serde integration-fs? structured
serde_json structured
sha2 ecdsa hmac? rsa?

Enables sha2

hash

chacha20 ecdsa hmac?

Enables chacha20

encryption / decryption

p256 ecdsa
bincode integration-fs?

Enables bincode

integrations

dashmap integration-fs?

Enables dashmap ^5.5

compact_str integration-fs?

Enables compact_str ^0.7

xxhash-rust integration-fs?
tokio integration-fs?