()
| 242 | } |
| 243 | |
| 244 | fn collect_dashboard_source_inputs() -> Vec<PathBuf> { |
| 245 | let mut inputs = Vec::new(); |
| 246 | for relative in DASHBOARD_SOURCE_FILES { |
| 247 | println!("cargo::rerun-if-changed={relative}"); |
| 248 | let path = PathBuf::from(relative); |
| 249 | if path.is_file() { |
| 250 | inputs.push(path); |
| 251 | } |
| 252 | } |
| 253 | for relative in DASHBOARD_SOURCE_DIRS { |
| 254 | println!("cargo::rerun-if-changed={relative}"); |
| 255 | collect_dashboard_source_dir(Path::new(relative), &mut inputs); |
| 256 | } |
| 257 | inputs |
| 258 | } |
| 259 | |
| 260 | fn collect_dashboard_source_dir(dir: &Path, inputs: &mut Vec<PathBuf>) { |
| 261 | let Ok(entries) = fs::read_dir(dir) else { |
no test coverage detected