MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_input

Function parse_input

cranelift/src/souper_harvest.rs:137–142  ·  view source on GitHub ↗
(path: PathBuf)

Source from the content-addressed store, hash-verified

135}
136
137fn parse_input(path: PathBuf) -> Result<Vec<Function>> {
138 let contents = read_to_string(&path)?;
139 let funcs = cranelift_reader::parse_functions(&contents)
140 .with_context(|| format!("parse error in {}", path.display()))?;
141 Ok(funcs)
142}
143
144/// A convenience function for a quick usize hash
145#[inline]

Callers 1

runFunction · 0.85

Calls 4

read_to_stringFunction · 0.85
parse_functionsFunction · 0.85
OkFunction · 0.85
with_contextMethod · 0.80

Tested by

no test coverage detected