# 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-sql-common"
version = "0.14.2"
authors = ["CDK Developers"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic SQL storage backend for CDK"
homepage = "https://github.com/cashubtc/cdk"
readme = "README.md"
license = "MIT"
repository = "https://github.com/cashubtc/cdk.git"

[features]
auth = ["cdk-common/auth"]
default = [
    "mint",
    "wallet",
    "auth",
]
mint = ["cdk-common/mint"]
prometheus = ["cdk-prometheus"]
wallet = ["cdk-common/wallet"]

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

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

[dependencies.bitcoin]
version = "0.32.2"
features = [
    "base64",
    "serde",
    "rand",
    "rand-std",
]

[dependencies.cdk-common]
version = "=0.14.2"
features = ["test"]
default-features = false

[dependencies.cdk-prometheus]
version = "=0.14.2"
optional = true
default-features = false

[dependencies.lightning-invoice]
version = "0.33.0"
features = [
    "serde",
    "std",
]

[dependencies.once_cell]
version = "1.20.2"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

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