forked from tsirysndr/superviseur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.rs
25 lines (25 loc) · 935 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.type_attribute("objects.v1alpha1.Project", "#[derive(serde::Serialize)]")
.type_attribute("objects.v1alpha1.Service", "#[derive(serde::Serialize)]")
.type_attribute(
"superviseur.v1alpha1.ListProjectsResponse",
"#[derive(serde::Serialize)]",
)
.type_attribute(
"superviseur.v1alpha1.GetProjectResponse",
"#[derive(serde::Serialize)]",
)
.out_dir("src/api")
.compile(
&[
"proto/objects/v1alpha1/service.proto",
"proto/superviseur/v1alpha1/control.proto",
"proto/superviseur/v1alpha1/core.proto",
"proto/superviseur/v1alpha1/logging.proto",
"proto/superviseur/v1alpha1/project.proto",
],
&["proto"],
)?;
Ok(())
}