mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
f5e1829117
We wrap emitted messages into a JSON-RPC notification envelope and write them to stdout. We use an indirection over an mpsc channel in order to avoid deadlocks if we emit logs while holding the writer lock on stdout.
26 lines
652 B
TOML
26 lines
652 B
TOML
[package]
|
|
name = "cln-plugin"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[example]]
|
|
name = "cln-plugin-startup"
|
|
path = "examples/cln-plugin-startup.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.51"
|
|
bytes = "1.1.0"
|
|
log = { version = "0.4.14", features = ['std'] }
|
|
serde = { version = "1.0.131", features = ["derive"] }
|
|
serde_json = "1.0.72"
|
|
tokio-util = { version = "0.6.9", features = ["codec"] }
|
|
tokio = { version="1", features = ['io-std', 'rt', 'sync'] }
|
|
tokio-stream = "*"
|
|
futures = "0.3"
|
|
cln-rpc = { path = "../cln-rpc" }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", ] }
|
|
env_logger = "*"
|
|
cln-grpc = { path = "../cln-grpc" }
|