11 lines
286 B
Rust
11 lines
286 B
Rust
// build.rs
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.compile_protos(
|
|
&["proto/api.proto", "proto/uctovnictvo.proto"], // Include both proto files
|
|
&["proto"],
|
|
)?;
|
|
Ok(())
|
|
}
|