def METHOD_NAME(output_c_name: str, output_rs_name: str, output_rs_exec_name: str) -> None:
    """Compile the given Rust source file."""
    logging.info("Compiling translated Rust")
    compile_rust_cmd = [RUST_COMPILER, '-Awarnings', output_rs_name, '-o', output_rs_exec_name]
    try:
        subprocess.run(compile_rust_cmd, check=True)
    except:
        logging.info("Compile failure, saving source files locally")
        copyfile(output_c_name, 'output.c')
        copyfile(output_rs_name, 'output.rs')
        raise