MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / is_build_corrupted

Function is_build_corrupted

tools/cargo-run/src/frontend.rs:93–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 Err(e) if e.kind() == std::io::ErrorKind::NotFound => {}
92 Err(e) => eprintln!("warning: could not fully clean `{}`: {e}", wasm_target_dir.display()),
93 }
94 true
95}
96
97pub fn is_build_corrupted(path: PathBuf) -> bool {
98 let Ok(js) = std::fs::read_to_string(&path) else {
99 return false;
100 };
101 js.contains("from \"env\"") || js.contains("from 'env'")

Callers

nothing calls this directly

Calls 2

wasm_glue_pathFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected