usdt 0.3.5
“Cross-platform Userland Statically Defined Tracing probes”
References Cargo OUT_DIR environment valueReads a file into a Rust string
SHA-2562b4c48f9e522b977bbe938a0d7c4d36633d267ba0155aaa253fb57d0531be0fb
MaleculeH₂(F₂Os)
Evidence
405:4… pub fn build(self) -> Result<(), Error> {
406 let source = fs::read_to_string(self.source_file)?;
407 let tokens = usdt_impl::compile_provider_source(&source, &self.config)?;
408 let mut out_file = Path::new(&env::var("OUT_DIR")?).to_path_buf();
409 out_file.push(
410 self.out_file
411 .file_name()
412 .expect("Could not extract filename"),
413 );
414 fs::write(out_file, tokens.to_string().as_bytes())?;
415 Ok(())
416 }
⋯5 lines
No evidence locations were recorded for this file. Raw result