17 lines
456 B
Rust
17 lines
456 B
Rust
// build.rs
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.file_descriptor_set_path("src/proto/descriptor.bin")
|
|
.compile_protos(
|
|
&[
|
|
"proto/common.proto",
|
|
"proto/adresar.proto",
|
|
"proto/uctovnictvo.proto",
|
|
"proto/table_structure.proto"
|
|
],
|
|
&["proto"],
|
|
)?;
|
|
Ok(())
|
|
}
|