get adresar method is now working

This commit is contained in:
filipriec
2025-02-17 21:34:12 +01:00
parent b306a6d019
commit 52746c0ec1
9 changed files with 94 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
// build.rs
fn main() {
tonic_build::compile_protos("proto/api.proto").unwrap();
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.file_descriptor_set_path("src/proto/descriptor.bin") // Generate the file descriptor set
.compile_protos(&["proto/api.proto"], &["proto"])?; // Use compile_protos() instead of compile()
Ok(())
}