|
|
@@ -1,4 +1,9 @@
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
- tonic_build::compile_protos("../fish_speech/datasets/protos/text-data.proto")?;
|
|
|
+ const TEXT_DATA_PROTO: &str = "../fish_speech/datasets/protos/text-data.proto";
|
|
|
+
|
|
|
+ println!("cargo::rerun-if-changed=build.rs");
|
|
|
+ println!("cargo::rerun-if-changed={}", TEXT_DATA_PROTO);
|
|
|
+
|
|
|
+ tonic_build::compile_protos(TEXT_DATA_PROTO)?;
|
|
|
Ok(())
|
|
|
}
|