Trying to add protoc
Some checks failed
ci/woodpecker/push/code_tests Pipeline failed
ci/woodpecker/push/pre_commit_test Pipeline was successful

This commit is contained in:
Nikolai Rodionov
2025-11-28 17:07:02 +01:00
parent c595cab609
commit 56aa1e1bbf
11 changed files with 1368 additions and 30 deletions

View File

@@ -5,3 +5,6 @@ edition = "2024"
[dependencies]
uuid = { version = "1.18.1", features = ["v4"] }
[build-dependencies]
tonic-prost-build = "0.14.2"

4
lib/build.rs Normal file
View File

@@ -0,0 +1,4 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_prost_build::compile_protos("proto/helloworld.proto")?;
Ok(())
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
package helloworld;
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply);
}
message HelloRequest {
string name = 1;
}
message HelloReply {
string message = 1;
}