fix build.rs watch files (#2072)

This commit is contained in:
Ziru Niu 2024-06-17 18:10:01 +08:00 committed by yuanwu
parent 58c743bc90
commit b3dadbde06

View File

@ -1,7 +1,7 @@
use std::fs; use std::fs;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("cargo:rerun-if-changed=../../proto/**"); println!("cargo:rerun-if-changed=../../proto/");
fs::create_dir_all("src/v2/pb").unwrap_or(()); fs::create_dir_all("src/v2/pb").unwrap_or(());
let mut config = prost_build::Config::new(); let mut config = prost_build::Config::new();