Skip to content

Commit ea5635c

Browse files
nepetShahanaFarooqui
authored andcommitted
lsps: Implement JSON-RPC message structure
Signed-off-by: Peter Neuroth <[email protected]>
1 parent a12c02b commit ea5635c

File tree

8 files changed

+478
-6
lines changed

8 files changed

+478
-6
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ strip = "debuginfo"
44
[workspace]
55
resolver = "2"
66
members = [
7-
"cln-rpc",
8-
"cln-grpc",
9-
"plugins",
10-
"plugins/grpc-plugin",
11-
"plugins/rest-plugin"
7+
"cln-rpc",
8+
"cln-grpc",
9+
"plugins",
10+
"plugins/grpc-plugin",
11+
"plugins/rest-plugin",
12+
"plugins/lsps-plugin",
1213
]

plugins/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ cln-askrene
2020
recklessrpc
2121
exposesecret
2222
cln-xpay
23+
cln-lsps

plugins/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ plugins/cln-grpc: target/${RUST_PROFILE}/cln-grpc
148148
plugins/clnrest: target/${RUST_PROFILE}/clnrest
149149
@cp $< $@
150150

151-
PLUGINS += plugins/cln-grpc plugins/clnrest
151+
PLUGINS += plugins/cln-grpc plugins/clnrest plugins/cln-lsps
152152
endif
153153

154154
PLUGIN_COMMON_OBJS := \
@@ -300,6 +300,7 @@ CLN_PLUGIN_EXAMPLES := \
300300
CLN_PLUGIN_SRC = $(shell find plugins/src -name "*.rs")
301301
CLN_GRPC_PLUGIN_SRC = $(shell find plugins/grpc-plugin/src -name "*.rs")
302302
CLN_REST_PLUGIN_SRC = $(shell find plugins/rest-plugin/src -name "*.rs")
303+
CLN_LSPS_PLUGIN_SRC = $(shell find plugins/lsps-plugin/src -name "*.rs")
303304

304305
target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL) $(MSGGEN_GEN_ALL)
305306
cargo build ${CARGO_OPTS} --bin cln-grpc

plugins/lsps-plugin/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "cln-lsps"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
serde = { version = "1.0", features = ["derive"] }
8+
serde_json = "1.0"

0 commit comments

Comments
 (0)