MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / generate_stub_resources

Function generate_stub_resources

crates/openshell-driver-vm/build.rs:144–152  ·  view source on GitHub ↗
(out_dir: &Path, names: &[&str])

Source from the content-addressed store, hash-verified

142}
143
144fn 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}

Callers 1

mainFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected