[package]
name = "clnrest"
version = "0.2.0"
edition = "2021"
license = "MIT"
description = "Transforms RPC calls into REST APIs"
homepage = "https://github.com/ElementsProject/lightning/tree/master/plugins"
repository = "https://github.com/ElementsProject/lightning"

[dependencies]
anyhow = "1"
bytes = "1"
log = { version = "0.4", features = ['std'] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml_ng = "0.10.0"
quick-xml = { version = "0.38", features = ["serialize"] }
roxmltree_to_serde = "0.6"
serde_qs = "0.15"
tokio-util = { version = "0.7", features = ["codec"] }
tokio = { version = "1", features = [
    'io-std',
    'rt-multi-thread',
    'sync',
    'macros',
    'io-util',
] }
axum = "0.8"
axum-server = { version = "0.8", features = ["tls-rustls-no-provider"] }
rustls = { version = "0.23", default-features = false, features = [
    "logging",
    "tls12",
    "std",
    "ring",
] }
matchit = "0.9"
futures-util = { version = "0.3", default-features = false, features = [
    "sink",
    "std",
] }
rcgen = "0.13"
hyper = "1"
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "set-header"] }
utoipa = { version = "5", features = ['axum_extras'] }

log-panics = "2"
socketioxide = { version = "0.16", features = ["state"] }

cln-plugin = { workspace = true }
cln-rpc = { workspace = true }
utoipa-swagger-ui = { version = "9.0.0", features = ["vendored", "axum"] }
