summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.rs4
-rw-r--r--proto/clawflake.proto12
2 files changed, 16 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..28eff69
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,4 @@
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ tonic_build::compile_protos("proto/clawflake.proto")?;
+ Ok(())
+}
diff --git a/proto/clawflake.proto b/proto/clawflake.proto
new file mode 100644
index 0000000..5eb9018
--- /dev/null
+++ b/proto/clawflake.proto
@@ -0,0 +1,12 @@
+syntax = "proto3";
+package clawflake;
+
+service Clawflake {
+ rpc GetID(IDRequest) returns (IDReply);
+}
+
+message IDRequest {}
+
+message IDReply {
+ string id = 1;
+}