Implementation: sidefiles
This commit is contained in:
+3
-3
@@ -69,13 +69,13 @@ fn build_dir(root: &Path, base_src: &Path, current_dir: &Path, out_dir: &Path) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip non-mist files
|
let relative = path.strip_prefix(base_src).unwrap();
|
||||||
|
|
||||||
if path.extension().and_then(|e| e.to_str()) != Some("mist") {
|
if path.extension().and_then(|e| e.to_str()) != Some("mist") {
|
||||||
|
fs::copy(&path, out_dir.join(relative)).expect("Failed to copy non-mist file");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let relative = path.strip_prefix(base_src).unwrap();
|
|
||||||
|
|
||||||
let output_path = out_dir.join(relative).with_extension("rs");
|
let output_path = out_dir.join(relative).with_extension("rs");
|
||||||
|
|
||||||
// create parent directories
|
// create parent directories
|
||||||
|
|||||||
Reference in New Issue
Block a user