MCPcopy Create free account
hub / github.com/Nariod/RustPacker / get_source_binary_filename

Function get_source_binary_filename

src/tools.rs:59–75  ·  view source on GitHub ↗
(order: &arg_parser::Order, output_folder: &Path)

Source from the content-addressed store, hash-verified

57}
58
59pub fn get_source_binary_filename(order: &arg_parser::Order, output_folder: &Path) -> PathBuf {
60 let binary_name = format!("{}.{}", order.execution, order.format);
61 let candidates = [
62 "target/x86_64-pc-windows-msvc/release",
63 "target/x86_64-pc-windows-gnu/release",
64 ];
65 for dir in candidates {
66 let path = output_folder.join(dir).join(&binary_name);
67 if path.exists() {
68 return path;
69 }
70 }
71 output_folder.join(format!(
72 "target/x86_64-pc-windows-gnu/release/{}",
73 binary_name
74 ))
75}
76
77pub fn process_output(order: &arg_parser::Order, output_folder_path: &Path) -> io::Result<()> {
78 let output_path = match &order.output {

Callers 3

process_outputFunction · 0.85
rename_source_binaryFunction · 0.85

Calls

no outgoing calls

Tested by 1