diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2021-07-30 22:37:44 +0200 |
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2021-07-30 22:37:44 +0200 |
| commit | e8ae2cc4ee5199f0a0b10f6227e552a50c7e1ff8 (patch) | |
| tree | 345713feedb84e3fca63fffe4e267dddecc2d268 | |
| parent | c461dccfcb81c911100899210e89bbc01404b5c6 (diff) | |
add proto file and init tonic
| -rw-r--r-- | build.rs | 4 | ||||
| -rw-r--r-- | proto/clawflake.proto | 12 |
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; +} |
