Skip to main content

write_bundled_executable

Function write_bundled_executable 

Source
pub fn write_bundled_executable(
    runtime_path: &Path,
    output_path: &Path,
    archive_bytes: &[u8],
) -> Result<()>
Expand description

Copy the runtime binary at runtime_path to output_path, then append the archive bytes and a 16-byte trailer. On Unix, the output is made executable.