[package]
name = "cln-grpc"
version = "0.5.0"
edition = "2021"
license = "MIT"
description = "The Core Lightning API as grpc primitives. Provides the bindings used to expose the API over the network."
homepage = "https://github.com/ElementsProject/lightning/tree/master/cln-grpc"
repository = "https://github.com/ElementsProject/lightning"
documentation = "https://docs.rs/cln-grpc"

[features]
default = []
server = ["cln-rpc"]

[dependencies]
anyhow = "1.0"
log = "0.4"
cln-rpc = { workspace = true, optional = true }
cfg-if = "1.0"
serde = { version = "1.0", features = ["derive"] }
tonic = { version = "0.11", features = ["tls", "transport"] }
prost = "0.12"
hex = "0.4.3"
bitcoin = { version = "0.31", features = ["serde"] }
tokio-stream = { version = "0.1.14", features = ["sync"] }
tokio = { version = "1.36.0", features = ["sync"] }
futures-core = "0.3.30"
tokio-util = "0.7.10"

[dev-dependencies]
serde_json = "1.0.72"

[build-dependencies]
tonic-build = "0.11"
