mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-07 07:01:31 +00:00
25 lines
618 B
Rust
25 lines
618 B
Rust
use std::io::Result;
|
|
|
|
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/v1/control.proto",
|
|
"proto/krata/internal/idm.proto",
|
|
],
|
|
&["proto/"],
|
|
)?;
|
|
tonic_build::configure().compile_with_config(
|
|
config,
|
|
&[
|
|
"proto/krata/v1/control.proto",
|
|
"proto/krata/internal/idm.proto",
|
|
],
|
|
&["proto/"],
|
|
)?;
|
|
Ok(())
|
|
}
|