(path_to_cargo_folder: &Path)
| 142 | } |
| 143 | |
| 144 | fn run_compiler(path_to_cargo_folder: &Path) -> Result<(), Box<dyn std::error::Error>> { |
| 145 | if is_running_in_container() { |
| 146 | return compile_locally(path_to_cargo_folder); |
| 147 | } |
| 148 | |
| 149 | if let Some(runtime) = find_container_runtime() { |
| 150 | println!("[+] Using {} for cross-compilation", runtime); |
| 151 | return compile_in_container(runtime, path_to_cargo_folder); |
| 152 | } |
| 153 | |
| 154 | println!("[!] No container runtime found, falling back to local compilation"); |
| 155 | compile_locally(path_to_cargo_folder) |
| 156 | } |
| 157 | |
| 158 | pub fn compile(path_to_cargo_folder: &Path) { |
| 159 | println!("[+] Starting to compile your malware.."); |
no test coverage detected