(out_dir: &Path, names: &[&str])
| 142 | } |
| 143 | |
| 144 | fn generate_stub_resources(out_dir: &Path, names: &[&str]) { |
| 145 | for name in names { |
| 146 | let path = out_dir.join(name); |
| 147 | if !path.exists() { |
| 148 | fs::write(&path, b"") |
| 149 | .unwrap_or_else(|e| panic!("Failed to write stub {}: {}", path.display(), e)); |
| 150 | } |
| 151 | } |
| 152 | } |