MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / collect_dashboard_source_dir

Function collect_dashboard_source_dir

build.rs:260–273  ·  view source on GitHub ↗
(dir: &Path, inputs: &mut Vec<PathBuf>)

Source from the content-addressed store, hash-verified

258}
259
260fn 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
275fn emit_dashboard_asset_inputs() -> String {
276 let source_inputs = collect_dashboard_source_inputs();

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected