From 985a3c79bfb06def51210aba2e420ff973a12f1c Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Thu, 29 Aug 2024 20:33:41 +0200 Subject: [PATCH] Move proto files --- build/rust/build.rs | 6 +++--- {external => proto/actions}/transfer.proto | 4 +++- {internal => proto/internal}/action.proto | 2 ++ {internal => proto/internal}/flow.proto | 0 {internal => proto/internal}/flow_definition.proto | 0 {internal => proto/internal}/node.proto | 0 {internal => proto/internal}/ping.proto | 0 {shared => proto/shared}/definitions.proto | 2 ++ 8 files changed, 10 insertions(+), 4 deletions(-) rename {external => proto/actions}/transfer.proto (87%) rename {internal => proto/internal}/action.proto (92%) rename {internal => proto/internal}/flow.proto (100%) rename {internal => proto/internal}/flow_definition.proto (100%) rename {internal => proto/internal}/node.proto (100%) rename {internal => proto/internal}/ping.proto (100%) rename {shared => proto/shared}/definitions.proto (78%) diff --git a/build/rust/build.rs b/build/rust/build.rs index 74bc80b..3ea3af9 100644 --- a/build/rust/build.rs +++ b/build/rust/build.rs @@ -14,9 +14,9 @@ fn main() -> Result<()> { ]; let inclusions = &[ - "../../shared", - "../../internal", - "../../external", + "../../proto/shared", + "../../proto/internal", + "../../proto/external", ]; let out_path = "src/generated"; diff --git a/external/transfer.proto b/proto/actions/transfer.proto similarity index 87% rename from external/transfer.proto rename to proto/actions/transfer.proto index cea81bc..5021338 100644 --- a/external/transfer.proto +++ b/proto/actions/transfer.proto @@ -2,7 +2,9 @@ syntax = "proto3"; import "definitions.proto"; -package external; +option ruby_package = "Tucana::Actions"; + +package actions; message InformationRequest { string identifier = 1; diff --git a/internal/action.proto b/proto/internal/action.proto similarity index 92% rename from internal/action.proto rename to proto/internal/action.proto index 7d5fb00..989b6a4 100644 --- a/internal/action.proto +++ b/proto/internal/action.proto @@ -1,6 +1,8 @@ syntax = "proto3"; import "definitions.proto"; +option ruby_package = "Tucana::Internal"; + package internal; message ActionLogonRequest { diff --git a/internal/flow.proto b/proto/internal/flow.proto similarity index 100% rename from internal/flow.proto rename to proto/internal/flow.proto diff --git a/internal/flow_definition.proto b/proto/internal/flow_definition.proto similarity index 100% rename from internal/flow_definition.proto rename to proto/internal/flow_definition.proto diff --git a/internal/node.proto b/proto/internal/node.proto similarity index 100% rename from internal/node.proto rename to proto/internal/node.proto diff --git a/internal/ping.proto b/proto/internal/ping.proto similarity index 100% rename from internal/ping.proto rename to proto/internal/ping.proto diff --git a/shared/definitions.proto b/proto/shared/definitions.proto similarity index 78% rename from shared/definitions.proto rename to proto/shared/definitions.proto index 58028c2..c056c1f 100644 --- a/shared/definitions.proto +++ b/proto/shared/definitions.proto @@ -1,5 +1,7 @@ syntax = "proto3"; +option ruby_package = "Tucana::Shared"; + package shared; message RuntimeFunctionDefinition {