Skip to content

Commit 377c1a3

Browse files
committed
crates: centralize version management
1 parent 4df8677 commit 377c1a3

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ members = [
1111
"plugins/rest-plugin",
1212
"plugins/lsps-plugin",
1313
]
14+
15+
[workspace.dependencies]
16+
cln-rpc = { path = "cln-rpc", version = "0.4.0" }
17+
cln-grpc = { path = "cln-grpc", version = "0.4.1" }
18+
cln-plugin = { path = "plugins", version = "0.4.0" }

cln-grpc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ server = ["cln-rpc"]
1515
[dependencies]
1616
anyhow = "1.0"
1717
log = "0.4"
18-
cln-rpc = { path = "../cln-rpc/", version = "0.4", optional = true }
18+
cln-rpc = { workspace = true, optional = true }
1919
cfg-if = "1.0"
2020
serde = { version = "1.0", features = ["derive"] }
2121
tonic = { version = "0.11", features = ["tls", "transport"] }
@@ -29,7 +29,7 @@ tokio-util = "0.7.10"
2929

3030
[dev-dependencies]
3131
serde_json = "1.0.72"
32-
cln-rpc = { path = "../cln-rpc/", version = "0.4" }
32+
cln-rpc = { workspace = true }
3333

3434
[build-dependencies]
3535
tonic-build = "0.11"

plugins/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ tracing = { version = "^0.1", features = ["async-await", "log"] }
2727

2828
[dev-dependencies]
2929
tokio = { version = "1", features = ["macros", "rt-multi-thread", ] }
30-
cln-grpc = { version = "0.4", path = "../cln-grpc" }
30+
cln-grpc = { workspace = true }

plugins/grpc-plugin/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ anyhow = "1.0"
1717
log = "0.4"
1818
rcgen = { version = "0.13.1", features = ["pem", "x509-parser"] }
1919
prost = "0.12"
20-
cln-grpc = { version = "0.4", features = ["server"], path = "../../cln-grpc"}
21-
cln-plugin = { version = "0.4", path = "../../plugins" }
22-
cln-rpc = { version = "0.4", path = "../../cln-rpc" }
20+
cln-grpc = { workspace = true, features = ["server"]}
21+
cln-plugin = { workspace = true }
22+
cln-rpc = { workspace = true }
2323
serde_json = "1.0.113"
2424

2525
[dependencies.tokio]

plugins/lsps-plugin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ path = "src/service.rs"
1414
[dependencies]
1515
anyhow = "1.0"
1616
async-trait = "0.1"
17-
cln-plugin = { version = "0.4", path = "../" }
18-
cln-rpc = { version = "0.4", path = "../../cln-rpc" }
17+
cln-plugin = { workspace = true }
18+
cln-rpc = { workspace = true }
1919
hex = "0.4"
2020
log = "0.4"
2121
rand = "0.9"

plugins/rest-plugin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ utoipa = { version = "5", features = ['axum_extras'] }
2727
log-panics = "2"
2828
socketioxide = "0.15"
2929

30-
cln-plugin = { version = "0.4", path = "../../plugins" }
31-
cln-rpc = { version = "0.4", path = "../../cln-rpc" }
30+
cln-plugin = { workspace = true }
31+
cln-rpc = { workspace = true }
3232
utoipa-swagger-ui = { version = "9.0.0", features = ["vendored", "axum"] }
3333

0 commit comments

Comments
 (0)