# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85.0"
name = "cdk-axum"
version = "0.17.3-rc.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cashu CDK axum webserver"
homepage = "https://github.com/cashubtc/cdk"
readme = "README.md"
license = "MIT"
repository = "https://github.com/cashubtc/cdk.git"

[features]
info-page = ["dep:maud"]
prometheus = ["dep:cdk-prometheus"]
redis = ["dep:redis"]

[lib]
name = "cdk_axum"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8.1"
features = [
    "ws",
    "ws",
]

[dependencies.cdk]
version = "=0.17.3-rc.0"
features = ["mint"]
default-features = false

[dependencies.cdk-prometheus]
version = "=0.17.3-rc.0"
optional = true
default-features = false

[dependencies.futures]
version = "0.3.28"
features = ["async-await"]
default-features = false

[dependencies.maud]
version = "0.27.0"
features = ["axum"]
optional = true

[dependencies.moka]
version = "0.12.10"
features = ["future"]

[dependencies.paste]
version = "1.0.15"
default-features = false

[dependencies.redis]
version = "0.31.0"
features = [
    "tokio-rustls-comp",
    "cluster-async",
    "connection-manager",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10.8"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "test-util",
    "sync",
    "time",
]
default-features = false

[dependencies.tracing]
version = "0.1"
features = [
    "attributes",
    "log",
]
default-features = false

[dependencies.uuid]
version = "1.17"
features = [
    "v4",
    "v7",
    "serde",
]

[dev-dependencies.bip39]
version = "2.0"
features = ["rand"]

[dev-dependencies.cdk-fake-wallet]
version = "=0.17.3-rc.0"

[dev-dependencies.cdk-signatory]
version = "=0.17.3-rc.0"
default-features = false

[dev-dependencies.cdk-sqlite]
version = "=0.17.3-rc.0"
features = ["mint"]
default-features = true

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.17"
features = [
    "v4",
    "v7",
    "serde",
    "js",
]

[lints.clippy]
large_enum_variant = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
unwrap_used = "deny"
use_debug = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "forbid"

[lints.rustdoc]
bare_urls = "warn"
