Initial commit
This commit is contained in:
10
crates/shared/build.rs
Normal file
10
crates/shared/build.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user