Add `lightning-persister` `tokio` feature to `Cargo.toml`
What changed, and why it matters
This commit simply declares an existing optional dependency as a named Cargo feature. It is a build/package metadata change with no functional code changes and no security relevance.
No security action needed. Treat as a normal build metadata update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds a [features] section to lightning-persister/Cargo.toml exposing a ‘tokio’ feature that maps to the already-present optional ‘dep:tokio’ dependency. This is a packaging/discovery fix so users can enable the feature by name. No Rust source code was modified, no behavior changed, and no vulnerability is present in the diff.
Changed components
lightning-persister/Cargo.tomlInspect captured patch +3 / −0
diff --git a/lightning-persister/Cargo.toml b/lightning-persister/Cargo.toml
index 5bae5bc..593e19a 100644
--- a/lightning-persister/Cargo.toml
+++ b/lightning-persister/Cargo.toml
@@ -13,6 +13,9 @@ edition = "2021"
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
+[features]
+tokio = ["dep:tokio"]
+
[dependencies]
bitcoin = "0.32.2"
lightning = { version = "0.2.0", path = "../lightning" }
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.