(dir: &Path, inputs: &mut Vec<PathBuf>)
| 258 | } |
| 259 | |
| 260 | fn collect_dashboard_source_dir(dir: &Path, inputs: &mut Vec<PathBuf>) { |
| 261 | let Ok(entries) = fs::read_dir(dir) else { |
| 262 | return; |
| 263 | }; |
| 264 | for entry in entries.flatten() { |
| 265 | let path = entry.path(); |
| 266 | if path.is_dir() { |
| 267 | collect_dashboard_source_dir(&path, inputs); |
| 268 | } else if path.is_file() { |
| 269 | println!("cargo::rerun-if-changed={}", path.display()); |
| 270 | inputs.push(path); |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | fn emit_dashboard_asset_inputs() -> String { |
| 276 | let source_inputs = collect_dashboard_source_inputs(); |
no test coverage detected