mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
475 B
Rust
15 lines
475 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
println!("cargo:rerun-if-changed=proto/slice_cache.proto");
|
|
|
|
let protoc = protoc_bin_vendored::protoc_bin_path()?;
|
|
let mut prost_config = tonic_prost_build::Config::new();
|
|
prost_config.protoc_executable(protoc);
|
|
|
|
tonic_prost_build::configure()
|
|
.build_server(true)
|
|
.build_client(true)
|
|
.compile_with_config(prost_config, &["proto/slice_cache.proto"], &["proto"])?;
|
|
|
|
Ok(())
|
|
}
|