cdk-common 0.15.1

CDK common types and traits
Documentation
# 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-common"
version = "0.15.1"
authors = ["CDK Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CDK common types and traits"
homepage = "https://github.com/cashubtc/cdk"
readme = "README.md"
license = "MIT"
repository = "https://github.com/cashubtc/cdk.git"

[features]
bench = []
default = [
    "mint",
    "wallet",
]
grpc = ["dep:tonic"]
http = ["dep:cdk-http-client"]
mint = [
    "cashu/mint",
    "dep:uuid",
]
nostr = [
    "wallet",
    "cashu/nostr",
]
prometheus = ["cdk-prometheus/default"]
swagger = [
    "dep:utoipa",
    "cashu/swagger",
]
test = []
wallet = [
    "cashu/wallet",
    "dep:uuid",
]

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

[[bench]]
name = "transaction_id_benchmark"
path = "benches/transaction_id_benchmark.rs"
harness = false

[dependencies.anyhow]
version = "1"

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

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

[dependencies.cashu]
version = "=0.15.1"
default-features = false

[dependencies.cbor-diag]
version = "0.1.12"

[dependencies.cdk-http-client]
version = "=0.15.1"
optional = true

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

[dependencies.ciborium]
version = "0.2.2"
features = ["std"]
default-features = false

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

[dependencies.lightning]
version = "0.2.0"
features = ["std"]
default-features = false

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

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.paste]
version = "1.0.15"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.url]
version = "2.3"

[dependencies.utoipa]
version = "5.3.1"
features = [
    "preserve_order",
    "preserve_path_order",
]
optional = true

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

[dependencies.web-time]
version = "1.1.0"

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

[dev-dependencies.criterion]
version = "0.6.0"

[dev-dependencies.rand]
version = "0.9.1"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

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

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

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