crates: centralize version management
What changed, and why it matters
This commit is a routine housekeeping change for a Rust-based software project. It moves version numbers for internal components into one central configuration file (the workspace root) and updates each component to reference that shared definition. There is no change to program logic, no bug fix, and no security patch visible in the diff.
No security action required. Review as normal build-system maintenance if desired.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit introduces a [workspace.dependencies] section in the root Cargo.toml and pins cln-rpc, cln-grpc, and cln-plugin to version 0.5.0. Sub-crate Cargo.toml files are updated to use { workspace = true } instead of duplicating path and version fields. This is a standard Cargo workspace dependency centralization refactor. No source code, build scripts, or dependency versions of external crates are modified.
Changed components
Cargo.toml workspace configurationcln-grpc/Cargo.tomlplugins/Cargo.tomlplugins/grpc-plugin/Cargo.tomlplugins/lsps-plugin/Cargo.tomlplugins/rest-plugin/Cargo.tomlplugins/wss-proxy-plugin/Cargo.tomlInspect captured patch +16 / −11
diff --git a/Cargo.toml b/Cargo.toml
index 1743db67..a3b8e55d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,3 +13,8 @@ members = [
"plugins/wss-proxy-plugin",
"plugins/bip353-plugin",
]
+
+[workspace.dependencies]
+cln-rpc = { path = "cln-rpc", version = "0.5.0" }
+cln-grpc = { path = "cln-grpc", version = "0.5.0" }
+cln-plugin = { path = "plugins", version = "0.5.0" }
diff --git a/cln-grpc/Cargo.toml b/cln-grpc/Cargo.toml
index b4fdbb87..458512c7 100644
--- a/cln-grpc/Cargo.toml
+++ b/cln-grpc/Cargo.toml
@@ -15,7 +15,7 @@ server = ["cln-rpc"]
[dependencies]
anyhow = "1.0"
log = "0.4"
-cln-rpc = { path = "../cln-rpc/", version = "0.5", optional = true }
+cln-rpc = { workspace = true, optional = true }
cfg-if = "1.0"
serde = { version = "1.0", features = ["derive"] }
tonic = { version = "0.11", features = ["tls", "transport"] }
diff --git a/plugins/Cargo.toml b/plugins/Cargo.toml
index 58813e6e..3f7d7bb1 100644
--- a/plugins/Cargo.toml
+++ b/plugins/Cargo.toml
@@ -27,4 +27,4 @@ tracing = { version = "^0.1", features = ["async-await", "log"] }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", ] }
-cln-grpc = { version = "0.5", path = "../cln-grpc" }
+cln-grpc = { workspace = true }
diff --git a/plugins/grpc-plugin/Cargo.toml b/plugins/grpc-plugin/Cargo.toml
index a4226b8c..fa955ad9 100644
--- a/plugins/grpc-plugin/Cargo.toml
+++ b/plugins/grpc-plugin/Cargo.toml
@@ -17,9 +17,9 @@ anyhow = "1.0"
log = "0.4"
rcgen = { version = "0.13.1", features = ["pem", "x509-parser"] }
prost = "0.12"
-cln-grpc = { version = "0.5", features = ["server"], path = "../../cln-grpc" }
-cln-plugin = { version = "0.5", path = "../../plugins" }
-cln-rpc = { version = "0.5", path = "../../cln-rpc" }
+cln-grpc = { workspace = true, features = ["server"]}
+cln-plugin = { workspace = true }
+cln-rpc = { workspace = true }
serde_json = "1.0.113"
[dependencies.tokio]
diff --git a/plugins/lsps-plugin/Cargo.toml b/plugins/lsps-plugin/Cargo.toml
index 60b3b57e..5ef5fa42 100644
--- a/plugins/lsps-plugin/Cargo.toml
+++ b/plugins/lsps-plugin/Cargo.toml
@@ -16,8 +16,8 @@ anyhow = "1.0"
async-trait = "0.1"
bitcoin = "0.31"
chrono = { version= "0.4.42", features = ["serde"] }
-cln-plugin = { version = "0.5", path = "../" }
-cln-rpc = { version = "0.5", path = "../../cln-rpc" }
+cln-plugin = { workspace = true }
+cln-rpc = { workspace = true }
hex = "0.4"
log = "0.4"
rand = "0.9"
diff --git a/plugins/rest-plugin/Cargo.toml b/plugins/rest-plugin/Cargo.toml
index 566c4018..e8c1be8b 100644
--- a/plugins/rest-plugin/Cargo.toml
+++ b/plugins/rest-plugin/Cargo.toml
@@ -31,6 +31,6 @@ utoipa = { version = "5", features = ['axum_extras'] }
log-panics = "2"
socketioxide = "0.15"
-cln-plugin = { version = "0.5", path = "../../plugins" }
-cln-rpc = { version = "0.5", path = "../../cln-rpc" }
+cln-plugin = { workspace = true }
+cln-rpc = { workspace = true }
utoipa-swagger-ui = { version = "9.0.0", features = ["vendored", "axum"] }
diff --git a/plugins/wss-proxy-plugin/Cargo.toml b/plugins/wss-proxy-plugin/Cargo.toml
index 9e8f38fc..6d0a61d0 100644
--- a/plugins/wss-proxy-plugin/Cargo.toml
+++ b/plugins/wss-proxy-plugin/Cargo.toml
@@ -23,6 +23,6 @@ tokio-rustls = { version = "0.26", default-features = false, features = ["ring",
log-panics = "2"
-cln-plugin = { version = "0.5", path = "../../plugins" }
-cln-rpc = { version = "0.5", path = "../../cln-rpc" }
+cln-plugin = { workspace = true }
+cln-rpc = { workspace = true }
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.