[package]
name = "cbwaw"

version.workspace = true
edition.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true

description = "Auth library for Ordinary Framework."
license = "AGPL-3.0-only"
readme = "README.md"
categories = ["authentication"]

[features]
default = ["client", "core"]
client = []
core = ["dep:saferlmdb", "dep:uuid", "dep:ed25519-dalek"]

[dependencies]
saferlmdb = { workspace = true, optional = true }
uuid = { workspace = true, optional = true }
ed25519-dalek = { workspace = true, optional = true }

sha2.workspace = true
argon2.workspace = true
blake2.workspace = true
bytes.workspace = true
chacha20poly1305.workspace = true
ordinary-config.workspace = true
flexbuffers.workspace = true
qrcodegen.workspace = true
x25519-dalek.workspace = true

totp-rs = { version = "5.7.0", features = ["otpauth", "gen_secret"] }
opaque-ke = { version = "4.0.1", features = ["argon2"] }
tracing.workspace = true

[lints.clippy]
unwrap_used = "deny"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
