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

Function run_compiler

src/compiler.rs:144–156  ·  view source on GitHub ↗
(path_to_cargo_folder: &Path)

Source from the content-addressed store, hash-verified

142}
143
144fn 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
158pub fn compile(path_to_cargo_folder: &Path) {
159 println!("[+] Starting to compile your malware..");

Callers 1

compileFunction · 0.85

Calls 4

is_running_in_containerFunction · 0.85
compile_locallyFunction · 0.85
find_container_runtimeFunction · 0.85
compile_in_containerFunction · 0.85

Tested by

no test coverage detected