get adresar method is now working
This commit is contained in:
8
build.rs
8
build.rs
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user