get the output directory of this crate.
()
| 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"] |
nothing calls this directly
no test coverage detected