Skip to main content

write_bundled_executable_from_bytes

Function write_bundled_executable_from_bytes 

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

Like write_bundled_executable, but takes the runtime binary as a byte slice instead of reading from disk. Used for cross-compilation where the runtime bytes were downloaded/cached.