-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.rs
More file actions
14 lines (14 loc) · 759 Bytes
/
build.rs
File metadata and controls
14 lines (14 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(clippy::uninlined_format_args)]
fn main() {
tonic_build::compile_protos("proto/colink.proto")
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
#[cfg(feature = "remote_storage")]
prost_build::compile_protos(&["proto/colink_remote_storage.proto"], &["proto/"])
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
#[cfg(feature = "registry")]
prost_build::compile_protos(&["proto/colink_registry.proto"], &["proto/"])
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
#[cfg(feature = "policy_module")]
prost_build::compile_protos(&["proto/colink_policy_module.proto"], &["proto/"])
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
}