[package]
name = "cdk-axum"
version.workspace = true
edition.workspace = true
license.workspace = true
homepage = "https://github.com/cashubtc/cdk"
repository = "https://github.com/cashubtc/cdk.git"
rust-version.workspace = true                            # MSRV
description = "Cashu CDK axum webserver"


[features]
default = ["auth"]
redis = ["dep:redis"]
swagger = ["cdk/swagger", "dep:utoipa"]
auth = ["cdk/auth"]

[dependencies]
anyhow.workspace = true
async-trait.workspace = true
axum = { workspace = true, features = ["ws"] }
cdk = { workspace = true, features = [
    "mint",
]}
tokio.workspace = true
tracing.workspace = true
utoipa = { workspace = true, optional = true }
futures.workspace = true
moka = { version = "0.11.1", features = ["future"] }
serde_json.workspace = true
paste = "1.0.15"
serde.workspace = true
uuid.workspace = true
sha2 = "0.10.8"
redis = { version = "0.23.3", features = [
    "tokio-rustls-comp",
], optional = true }


[build-dependencies]
# Dep of utopia 2.5.0 breaks so keeping here for now
time = "=0.3.39"

