# 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-sqlite"
version = "0.14.0"
authors = ["CDK Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLite 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",
    "cdk-sql-common/auth",
]
default = [
    "mint",
    "wallet",
    "auth",
]
mint = [
    "cdk-common/mint",
    "cdk-sql-common/mint",
]
prometheus = [
    "cdk-sql-common/prometheus",
    "cdk-prometheus",
]
sqlcipher = ["rusqlite/bundled-sqlcipher"]
wallet = [
    "cdk-common/wallet",
    "cdk-sql-common/wallet",
]

[lib]
name = "cdk_sqlite"
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.0"
features = ["test"]
default-features = false

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

[dependencies.cdk-sql-common]
version = "=0.14.0"
default-features = true

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

[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]

[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",
    "rt-multi-thread",
]
default-features = false

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

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

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