Files
ws-agent/crates/shared/build.rs
2026-01-26 18:04:07 +02:00

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(())
}