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

[features]
default = ["wallet"]
wallet = ["cdk-common/wallet"]

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

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

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

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

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

[dependencies.redb]
version = "3.1.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

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

[dev-dependencies.tempfile]
version = "3.17.1"

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

[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"
