fn main() {
let mut build = tonic_build::configure();
#[cfg(feature = "serde")]
{
build = build.type_attribute(
"build.bazel.remote.execution.v2.Digest",
"#[derive(serde::Serialize, serde::Deserialize)]",
);
}
#[cfg(feature = "eq")]
{
build = build.type_attribute(
"build.bazel.remote.execution.v2.Digest",
"#[derive(Eq, Hash)]",
);
}
build
.compile_protos(
&[
"protos/google/protobuf/any.proto",
"protos/google/protobuf/descriptor.proto",
"protos/google/protobuf/duration.proto",
"protos/google/protobuf/empty.proto",
"protos/google/protobuf/timestamp.proto",
"protos/google/protobuf/wrappers.proto",
"protos/google/protobuf/descriptor.proto",
"protos/google/api/http.proto",
"protos/google/api/resource.proto",
"protos/google/api/field_behavior.proto",
"protos/google/api/annotations.proto",
"protos/google/longrunning/operations.proto",
"protos/google/devtools/remoteworkers/v1test2/bots.proto",
"protos/google/devtools/remoteworkers/v1test2/command.proto",
"protos/google/devtools/remoteworkers/v1test2/worker.proto",
"protos/google/devtools/build/v1/build_status.proto",
"protos/google/devtools/build/v1/build_events.proto",
"protos/google/devtools/build/v1/publish_build_event.proto",
"protos/build/bazel/remote/execution/v2/remote_execution.proto",
"protos/build/bazel/remote/logstream/v1/remote_logstream.proto",
"protos/build/bazel/remote/asset/v1/remote_asset.proto",
"protos/build/bazel/semver/semver.proto",
"protos/build/buildgrid/v2/identity.proto",
"protos/build/buildgrid/v2/introspection.proto",
"protos/build/buildgrid/v2/messaging.proto",
"protos/build/buildgrid/v2/monitoring.proto",
"protos/build/buildgrid/v2/query_build_events.proto",
"protos/build/buildbox/execution_stats.proto",
"protos/build/buildbox/local_execution.proto",
"protos/build/buildbox/rexplorer.proto",
"protos/build/buildbox/worker_config.proto",
"protos/google/bytestream/bytestream.proto",
"protos/google/rpc/code.proto",
],
&["protos"],
)
.unwrap();
}