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.
synctv/synctv-realtime/build.rs

13 lines
363 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("cargo:rerun-if-changed=proto/realtime.proto");
let prost_config = tonic_prost_build::Config::new();
tonic_prost_build::configure()
.build_server(true)
.build_client(true)
.compile_with_config(prost_config, &["proto/realtime.proto"], &["proto"])?;
Ok(())
}