mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 09:08:30 +00:00
7 lines
238 B
Rust
7 lines
238 B
Rust
pub fn bin_path(profile: &str, name: &str, target_dir: Option<&str>) -> String {
|
|
match target_dir {
|
|
Some(dir) => format!("{}/{}", dir.trim_end_matches('/'), name),
|
|
None => format!("./target/{profile}/{name}"),
|
|
}
|
|
}
|