10 lines
340 B
Rust
10 lines
340 B
Rust
use std::env;
|
|
use std::path::PathBuf;
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
|
|
tonic_prost_build::configure()
|
|
.file_descriptor_set_path(out_dir.join("ai_service_descriptor.bin"))
|
|
.compile_protos(&["proto/api.proto"], &["proto"])?;
|
|
Ok(())
|
|
} |