core-lightning/plugins/Cargo.toml
Christian Decker 60e1532dd8 cln-plugin: Switch from env_logger to tracing-subscriber
This switches the logging implementation from using the `log`-facade
to using the `tracing-subscriber` instead. This allows us to also tap
into the tracing instrumentation if desired, which was not possible
with `log`.

Changelog-Changed cln-plugin: The logging adapter now uses tracing-subscriber allowing the `tracing` ecosystem to be used. No format changes.
2024-01-16 18:36:12 +01:00

31 lines
1.0 KiB
TOML

[package]
name = "cln-plugin"
version = "0.1.7"
edition = "2021"
license = "MIT"
description = "A CLN plugin library. Write your plugin in Rust."
homepage = "https://github.com/ElementsProject/lightning/tree/master/plugins"
repository = "https://github.com/ElementsProject/lightning"
documentation = "https://docs.rs/cln-plugin"
[[example]]
name = "cln-plugin-startup"
path = "examples/cln-plugin-startup.rs"
[dependencies]
anyhow = "1.0.51"
bytes = "1.1.0"
log = { version = "^0.4", features = ['std'] }
serde = { version = "^1", features = ["derive"] }
serde_json = "1.0.72"
tokio-util = { version = "0.7", features = ["codec"] }
tokio = { version="1", features = ['io-std', 'rt', 'sync', 'macros', 'io-util'] }
tokio-stream = "0.1"
futures = "0.3"
tracing-subscriber = { version = "^0.3", features = ["env-filter", "tracing"] }
tracing = { version = "^0.1", features = ["async-await", "log"] }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", ] }
cln-grpc = { version = "0.1", path = "../cln-grpc" }