MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_crate_output_dir

Method get_crate_output_dir

src/deopt.rs:112–121  ·  view source on GitHub ↗

get the output directory of this crate.

()

Source from the content-addressed store, hash-verified

110
111 /// get the output directory of this crate.
112 pub fn get_crate_output_dir() -> Result<PathBuf> {
113 let output = crate::config::get_config().output.clone();
114 let out_dir: PathBuf = if output == "output" {
115 [Deopt::get_crate_dir()?, "output"].iter().collect()
116 } else {
117 PathBuf::from(output)
118 };
119 utils::create_dir_if_nonexist(&out_dir)?;
120 Ok(out_dir)
121 }
122
123 pub fn get_crate_build_dir() -> Result<PathBuf> {
124 let build_dir: PathBuf = [Deopt::get_crate_dir()?, "output", "build"]

Callers

nothing calls this directly

Calls 2

get_configFunction · 0.85
create_dir_if_nonexistFunction · 0.85

Tested by

no test coverage detected