MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / collect_build_files

Function collect_build_files

src/build.rs:572–581  ·  view source on GitHub ↗
(dir: &std::path::Path, out: &mut Vec<std::path::PathBuf>)

Source from the content-addressed store, hash-verified

570 };
571 let cycles = raw
572 .parse::<u32>()
573 .map_err(|err| format!("`{key}` must be a positive integer: {err}"))?;
574 if cycles == 0 {
575 return Err(format!("`{key}` must be at least 1"));
576 }
577 match key {
578 "latency_l1" => config.l1_hit = cycles,
579 "latency_l2" => config.l2_hit = cycles,
580 "latency_l3" => config.l3_hit = cycles,
581 "latency_dram" => config.dram = cycles,
582 "latency_uncached" => config.uncached = cycles,
583 _ => unreachable!("override key list is exhaustive"),
584 }

Callers 1

Calls 2

pathMethod · 0.80
pushMethod · 0.80

Tested by 1