not working, adding uctovnictvo
This commit is contained in:
6
build.rs
6
build.rs
@@ -2,7 +2,9 @@
|
||||
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()
|
||||
.compile_protos(
|
||||
&["proto/api.proto", "proto/uctovnictvo.proto"], // Include both proto files
|
||||
&["proto"],
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user