cln/plugins/Cargo.toml
daywalker90 84d4d5920b crates: upgrade to 2024 rust edition
I've ran `cargo fix --edition` and three changes were noticeable:
- set_var is now unsafe, i've added a SAFETY comment on each to explain why
  this is fine here.
- conversions of several if let to match because of the new if let temporary scope
  I have reviewed and restored all of them since the behaviour was the same on each.
- the macro expr was converted to expr_2021 in the lsps plugin, i have reverted those
  aswell since we don't use const or _ expressions

Changelog-None
2026-04-24 15:48:06 +02:00

37 lines
1 KiB
TOML

[package]
name = "cln-plugin"
version = "0.6.0"
edition = "2024"
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"
rust-version.workspace = true
[[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 = { workspace = true }