mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 10:18:29 +00:00
Custom output directory via build.target
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
pub fn bin_path(profile: &str, name: &str) -> String {
|
||||
format!("./target/{profile}/{name}")
|
||||
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}"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user