MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / collect_build_files

Function collect_build_files

build.rs:134–146  ·  view source on GitHub ↗
(dir: &Path, out: &mut Vec<PathBuf>)

Source from the content-addressed store, hash-verified

132 if path.file_name().and_then(|name| name.to_str()) == Some("demo_workspace") {
133 continue;
134 }
135 collect_source_files(&path, manifest_dir, out);
136 continue;
137 }
138 let rel = path.strip_prefix(manifest_dir).expect("source under crate");
139 let key = rel.to_string_lossy().replace('\\', "/");
140 let ext = path.extension().and_then(|ext| ext.to_str());
141 let embed = match ext {
142 Some("hll") => true,
143 Some("build" | "ir" | "s") => {
144 key.starts_with("programs/user/")
145 || key.starts_with("programs/example/")
146 || key.starts_with("programs/lessons/")
147 }
148 _ => false,
149 };

Callers 1

generate_userspaceFunction · 0.70

Calls 2

pathMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected