core-lightning/plugins/Cargo.toml
Christian Decker f5e1829117 cln-plugin: Implement logging facade adapter for cln plugins
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.
2022-03-10 10:21:41 +10:30

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