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

Function collect_dashboard_source_inputs

build.rs:244–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244fn 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
260fn collect_dashboard_source_dir(dir: &Path, inputs: &mut Vec<PathBuf>) {
261 let Ok(entries) = fs::read_dir(dir) else {

Callers 1

Calls 2

pushMethod · 0.80

Tested by

no test coverage detected