MCPcopy Create free account
hub / github.com/PerroEngine/Perro / main

Function main

perro_source/io_stack/perro_io/build.rs:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3const SIZES: [usize; 7] = [8, 9, 32, 128, 512, 2048, 4096];
4
5fn main() {
6 println!("cargo:rerun-if-changed=build.rs");
7
8 let out_dir = PathBuf::from(env::var_os("OUT_DIR").expect("OUT_DIR unset"));
9 let path = out_dir.join("static_lookup_scale_generated.rs");
10 fs::write(path, generated_code()).expect("write generated lookup bench code");
11}
12
13fn generated_code() -> String {
14 let mut code = String::from("// generated by perro_io/build.rs\n\n");

Callers

nothing calls this directly

Calls 4

generated_codeFunction · 0.85
joinMethod · 0.80
writeFunction · 0.50
expectMethod · 0.45

Tested by

no test coverage detected