[package] name = "cdk-payment-processor" version.workspace = true edition.workspace = true authors = ["CDK Developers"] description = "CDK payment processor" homepage = "https://github.com/cashubtc/cdk" repository = "https://github.com/cashubtc/cdk.git" rust-version.workspace = true # MSRV license.workspace = true readme = "README.md" [[bin]] name = "cdk-payment-processor" path = "src/bin/payment_processor.rs" [features] default = ["cln", "fake", "lnd"] bench = [] cln = ["dep:cdk-cln"] fake = ["dep:cdk-fake-wallet"] lnd = ["dep:cdk-lnd"] [dependencies] anyhow.workspace = true async-trait.workspace = true bitcoin.workspace = true cdk-common = { workspace = true, features = ["mint"] } cdk-cln = { workspace = true, optional = true } cdk-lnd = { workspace = true, optional = true } cdk-fake-wallet = { workspace = true, optional = true } serde.workspace = true thiserror.workspace = true tracing.workspace = true tracing-subscriber.workspace = true lightning-invoice.workspace = true uuid = { workspace = true, optional = true } utoipa = { workspace = true, optional = true } futures.workspace = true serde_json.workspace = true serde_with.workspace = true tonic.workspace = true prost.workspace = true tokio-stream.workspace = true tokio-util = { workspace = true, default-features = false } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { workspace = true, features = [ "rt-multi-thread", "time", "macros", "sync", "signal" ] } [target.'cfg(target_arch = "wasm32")'.dependencies] tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] } [dev-dependencies] rand.workspace = true bip39.workspace = true [build-dependencies] tonic-build.workspace = true