(dir: &Path, out: &mut Vec<PathBuf>)
| 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 | }; |
no test coverage detected