# 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-signatory"
version = "0.15.0"
authors = ["CDK Developers"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CDK signatory default implementation"
homepage = "https://github.com/cashubtc/cdk"
readme = false
license = "MIT"
repository = "https://github.com/cashubtc/cdk.git"

[features]
default = [
    "grpc",
    "sqlite",
]
grpc = [
    "dep:tonic",
    "tokio/full",
    "dep:tonic-prost",
    "dep:tonic-prost-build",
    "dep:prost",
]
sqlcipher = ["cdk-sqlite/sqlcipher"]
sqlite = ["cdk-sqlite"]

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

[[bin]]
name = "signatory"
path = "src/bin/signatory.rs"

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

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

[dependencies.cdk-common]
version = "=0.15.0"
features = [
    "mint",
    "grpc",
]
default-features = false

[dependencies.prost]
version = "0.14"
optional = true

[dependencies.rustls]
version = "0.23.27"
features = ["ring"]
default-features = false

[dependencies.tonic]
version = "0.14.2"
features = [
    "transport",
    "tls-ring",
    "codegen",
    "router",
]
optional = true
default-features = false

[dependencies.tonic-prost]
version = "0.14.2"
optional = true

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

[build-dependencies.tonic-prost-build]
version = "0.14.2"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.anyhow]
version = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bip39]
version = "2.0"
features = ["rand"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.cdk-sqlite]
version = "=0.15.0"
features = ["mint"]
optional = true
default-features = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4.5.31"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.home]
version = "0.5.5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.thiserror]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "test-util",
    "sync",
    "full",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-stream]
version = "0.1.15"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "test-util",
    "sync",
    "rt",
    "macros",
    "sync",
    "time",
]
default-features = false

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