krata: move api proto to /proto and version api

This commit is contained in:
Alex Zenla
2024-03-24 05:52:25 +00:00
parent cb6839b0f6
commit 655b8029cb
26 changed files with 41 additions and 36 deletions

View File

@ -4,11 +4,15 @@ fn main() -> Result<()> {
let mut config = prost_build::Config::new();
prost_reflect_build::Builder::new()
.descriptor_pool("crate::DESCRIPTOR_POOL")
.configure(&mut config, &["proto/krata/control.proto"], &["proto/"])?;
.configure(
&mut config,
&["../../proto/krata/v1/control.proto"],
&["../../proto/"],
)?;
tonic_build::configure().compile_with_config(
config,
&["proto/krata/control.proto"],
&["proto/"],
&["../../proto/krata/v1/control.proto"],
&["../../proto/"],
)?;
Ok(())
}