From d2d64b0b564ffcf3c4ba44aba0be34f308607533 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Mon, 25 Oct 2021 13:42:52 +0100 Subject: [PATCH] remove templates --- templates/call.j2 | 1 - templates/enum.j2 | 5 ----- templates/file.j2 | 28 ---------------------------- templates/request.j2 | 1 - templates/stream.j2 | 1 - templates/struct.j2 | 4 ---- templates/type_conversions | 12 ------------ 7 files changed, 52 deletions(-) delete mode 100644 templates/call.j2 delete mode 100644 templates/enum.j2 delete mode 100644 templates/file.j2 delete mode 100644 templates/request.j2 delete mode 100644 templates/stream.j2 delete mode 100644 templates/struct.j2 delete mode 100644 templates/type_conversions diff --git a/templates/call.j2 b/templates/call.j2 deleted file mode 100644 index 8b13789..0000000 --- a/templates/call.j2 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/templates/enum.j2 b/templates/enum.j2 deleted file mode 100644 index e892193..0000000 --- a/templates/enum.j2 +++ /dev/null @@ -1,5 +0,0 @@ -#[derive(PartialEq, Clone, Debug)] -pub enum Result { - // TODO -} - diff --git a/templates/file.j2 b/templates/file.j2 deleted file mode 100644 index 096bc32..0000000 --- a/templates/file.j2 +++ /dev/null @@ -1,28 +0,0 @@ -mod {{ plugin_name.lower_snake_case }}_grpc; -mod {{ plugin_name.lower_snake_case }}; - -use {{ plugin_name.lower_snake_case }}::{{ plugin_name.upper_camel_case }}Result_Result; - -impl {{ plugin_name.upper_camel_case }} { - -{%- for enum in enums %} -{{ indent(enum, 1) }} -{%- endfor %} - -{% for struct in structs %} -{{ indent(struct, 1) }} -{% endfor %} - -{%- for method in methods %} -{{ indent(method, 1) }} -{%- endfor %} - -} - -impl super::super::FromChannel for {{ plugin_name.upper_camel_case}} { - fn new(channel: ::grpcio::Channel) -> Self { - {{ plugin_name.upper_camel_case }} { - service_client: {{ plugin_name.lower_snake_case }}_grpc::{{ plugin_name.upper_camel_case }}ServiceClient::new(channel), - } - } -} diff --git a/templates/request.j2 b/templates/request.j2 deleted file mode 100644 index 8b13789..0000000 --- a/templates/request.j2 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/templates/stream.j2 b/templates/stream.j2 deleted file mode 100644 index 8b13789..0000000 --- a/templates/stream.j2 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/templates/struct.j2 b/templates/struct.j2 deleted file mode 100644 index 0345bb6..0000000 --- a/templates/struct.j2 +++ /dev/null @@ -1,4 +0,0 @@ -#[derive(PartialEq, Clone, Default, Debug)] -pub struct Version { - // TODO -} diff --git a/templates/type_conversions b/templates/type_conversions deleted file mode 100644 index ca89e1e..0000000 --- a/templates/type_conversions +++ /dev/null @@ -1,12 +0,0 @@ -{ - "double": "Double", - "float": "Float", - "int64_t": "Int64", - "uint64_t": "UInt64", - "int32_t": "Int32", - "bool": "Bool", - "std::string": "String", - "std::byte": "Data", - "uint32_t": "UInt32", - "repeated": { "prefix": "[", "suffix": "]" } -}