mirror of https://github.com/dragonflyoss/api.git
18 lines
459 B
Rust
18 lines
459 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_client(true)
|
|
.build_server(true)
|
|
.out_dir("src")
|
|
.compile(
|
|
&[
|
|
"proto/common.proto",
|
|
"proto/security.proto",
|
|
"proto/dfdaemon.proto",
|
|
"proto/manager.proto",
|
|
"proto/scheduler.proto",
|
|
],
|
|
&["proto/"],
|
|
)?;
|
|
Ok(())
|
|
}
|