From c35d4208c36ed0fb09b4ac0fbb8681a33cec967b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 28 Nov 2024 21:29:53 +1030 Subject: [PATCH] plugins/Makefile: make cln-grpc depend on ALL THE THINGS. ``` error[E0277]: the trait bound `cln_rpc::model::requests::AskrenereserveRequest: From` is not satisfied --> cln-grpc/src/server.rs:3994:56 | 3994 | let req: requests::AskrenereserveRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskrenereserveRequest`, which is required by `pb::AskrenereserveRequest: Into<_>` | = note: required for `pb::AskrenereserveRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskreneageRequest: From` is not satisfied --> cln-grpc/src/server.rs:4026:52 | 4026 | let req: requests::AskreneageRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskreneageRequest`, which is required by `pb::AskreneageRequest: Into<_>` | = note: required for `pb::AskreneageRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::GetroutesRequest: From` is not satisfied --> cln-grpc/src/server.rs:4058:51 | 4058 | let req: requests::GetroutesRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::GetroutesRequest`, which is required by `pb::GetroutesRequest: Into<_>` | = note: required for `pb::GetroutesRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskrenedisablenodeRequest: From` is not satisfied --> cln-grpc/src/server.rs:4090:60 | 4090 | let req: requests::AskrenedisablenodeRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskrenedisablenodeRequest`, which is required by `pb::AskrenedisablenodeRequest: Into<_>` | = note: required for `pb::AskrenedisablenodeRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskreneinformchannelRequest: From` is not satisfied --> cln-grpc/src/server.rs:4122:62 | 4122 | let req: requests::AskreneinformchannelRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskreneinformchannelRequest`, which is required by `pb::AskreneinformchannelRequest: Into<_>` | = note: required for `pb::AskreneinformchannelRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskrenecreatechannelRequest: From` is not satisfied --> cln-grpc/src/server.rs:4154:62 | 4154 | let req: requests::AskrenecreatechannelRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskrenecreatechannelRequest`, which is required by `pb::AskrenecreatechannelRequest: Into<_>` | = note: required for `pb::AskrenecreatechannelRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskreneupdatechannelRequest: From` is not satisfied --> cln-grpc/src/server.rs:4186:62 | 4186 | let req: requests::AskreneupdatechannelRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskreneupdatechannelRequest`, which is required by `pb::AskreneupdatechannelRequest: Into<_>` | = note: required for `pb::AskreneupdatechannelRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskrenebiaschannelRequest: From` is not satisfied --> cln-grpc/src/server.rs:4218:60 | 4218 | let req: requests::AskrenebiaschannelRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskrenebiaschannelRequest`, which is required by `pb::AskrenebiaschannelRequest: Into<_>` | = note: required for `pb::AskrenebiaschannelRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::AskrenelistreservationsRequest: From` is not satisfied --> cln-grpc/src/server.rs:4250:65 | 4250 | let req: requests::AskrenelistreservationsRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::AskrenelistreservationsRequest`, which is required by `pb::AskrenelistreservationsRequest: Into<_>` | = note: required for `pb::AskrenelistreservationsRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::InjectpaymentonionRequest: From` is not satisfied --> cln-grpc/src/server.rs:4282:60 | 4282 | let req: requests::InjectpaymentonionRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::InjectpaymentonionRequest`, which is required by `pb::InjectpaymentonionRequest: Into<_>` | = note: required for `pb::InjectpaymentonionRequest` to implement `Into` error[E0277]: the trait bound `cln_rpc::model::requests::XpayRequest: From` is not satisfied --> cln-grpc/src/server.rs:4314:46 | 4314 | let req: requests::XpayRequest = req.into(); | ^^^^ the trait `From` is not implemented for `cln_rpc::model::requests::XpayRequest`, which is required by `pb::XpayRequest: Into<_>` | = note: required for `pb::XpayRequest` to implement `Into` ``` Signed-off-by: Rusty Russell --- plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Makefile b/plugins/Makefile index 6edee9617819..b0916dd15fd4 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -296,7 +296,7 @@ CLN_PLUGIN_EXAMPLES := \ CLN_PLUGIN_SRC = $(shell find plugins/src -name "*.rs") CLN_GRPC_PLUGIN_SRC = $(shell find plugins/grpc-plugin/src -name "*.rs") -target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL) +target/${RUST_PROFILE}/cln-grpc: ${CLN_PLUGIN_SRC} ${CLN_GRPC_PLUGIN_SRC} $(MSGGEN_GENALL) $(MSGGEN_GEN_ALL) cargo build ${CARGO_OPTS} --bin cln-grpc ifneq ($(RUST),0)